firehose: catch pipeline crash

This commit is contained in:
Alex Gleason 2023-08-17 20:28:23 -05:00
parent 0f70f5c76f
commit 85345bc157
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 4 additions and 1 deletions

View File

@ -21,5 +21,8 @@ pool.subscribe(
/** Handle events through the firehose pipeline. */
function handleEvent(event: Event): Promise<void> {
console.info(`firehose: Event<${event.kind}> ${event.id}`);
return pipeline.handleEvent(event);
return pipeline
.handleEvent(event)
.catch(() => {});
}