mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Move console.info from firehose to pipeline
This commit is contained in:
parent
58b12ae462
commit
6d6e3bcecc
2 changed files with 1 additions and 2 deletions
|
|
@ -17,8 +17,6 @@ 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)
|
||||
.catch(() => {});
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import type { EventData } from '@/types.ts';
|
|||
async function handleEvent(event: Event): Promise<void> {
|
||||
if (!(await verifySignatureWorker(event))) return;
|
||||
if (encounterEvent(event)) return;
|
||||
console.info(`pipeline: Event<${event.kind}> ${event.id}`);
|
||||
const data = await getEventData(event);
|
||||
|
||||
await Promise.all([
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue