From fc1ed59002bd309dd178c1329609d4b195ee0c1f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 29 Aug 2023 14:53:12 -0500 Subject: [PATCH] firehose: use `limit: 0` instead of `since` --- src/firehose.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/firehose.ts b/src/firehose.ts index 57cc1022..9278ef8e 100644 --- a/src/firehose.ts +++ b/src/firehose.ts @@ -1,6 +1,5 @@ import { getActiveRelays } from '@/db/relays.ts'; import { type Event, RelayPool } from '@/deps.ts'; -import { nostrNow } from '@/utils.ts'; import * as pipeline from './pipeline.ts'; @@ -11,7 +10,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: [0, 1, 3, 5, 6, 7, 10002], since: nostrNow() }], + [{ kinds: [0, 1, 3, 5, 6, 7, 10002], limit: 0 }], relays, handleEvent, undefined,