From 45a3e2974e8078740d05ba4606d90e3ce99453cd Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 14 Aug 2023 19:01:28 -0500 Subject: [PATCH] firehose: expand criteria, improve logging --- src/firehose.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/firehose.ts b/src/firehose.ts index b3d2296..5e8610e 100644 --- a/src/firehose.ts +++ b/src/firehose.ts @@ -14,7 +14,7 @@ const pool = new RelayPool(relays); // side-effects based on them, such as trending hashtag tracking // and storing events for notifications and the home feed. pool.subscribe( - [{ kinds: [1], since: nostrNow() }], + [{ kinds: [0, 1, 3, 5, 6, 7], since: nostrNow() }], relays, handleEvent, undefined, @@ -23,7 +23,7 @@ pool.subscribe( /** Handle events through the firehose pipeline. */ async function handleEvent(event: SignedEvent): Promise { - console.info('firehose event:', event.id); + console.info(`firehose: Event<${event.kind}> ${event.id}`); trackHashtags(event); trackRelays(event);