Move console.info from firehose to pipeline

This commit is contained in:
Alex Gleason 2023-12-22 10:24:14 -06:00
parent 58b12ae462
commit 6d6e3bcecc
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 1 additions and 2 deletions

View File

@ -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(() => {});

View File

@ -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([