From 85345bc1576c6a1d82e6df3d69b107e57613648f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 17 Aug 2023 20:28:23 -0500 Subject: [PATCH] firehose: catch pipeline crash --- src/firehose.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/firehose.ts b/src/firehose.ts index 8510a70..57cc102 100644 --- a/src/firehose.ts +++ b/src/firehose.ts @@ -21,5 +21,8 @@ pool.subscribe( /** Handle events through the firehose pipeline. */ function handleEvent(event: Event): Promise { console.info(`firehose: Event<${event.kind}> ${event.id}`); - return pipeline.handleEvent(event); + + return pipeline + .handleEvent(event) + .catch(() => {}); }