mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
firehose: catch pipeline crash
This commit is contained in:
parent
0f70f5c76f
commit
85345bc157
1 changed files with 4 additions and 1 deletions
|
|
@ -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(() => {});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue