mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
firehose: apparently the since filter is essential
This commit is contained in:
parent
5a5604b6d2
commit
9b761ff960
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import { getActiveRelays } from '@/db/relays.ts';
|
import { getActiveRelays } from '@/db/relays.ts';
|
||||||
import { type Event, RelayPool } from '@/deps.ts';
|
import { type Event, RelayPool } from '@/deps.ts';
|
||||||
|
import { nostrNow } from '@/utils.ts';
|
||||||
|
|
||||||
import * as pipeline from './pipeline.ts';
|
import * as pipeline from './pipeline.ts';
|
||||||
|
|
||||||
|
|
@ -10,7 +11,7 @@ const pool = new RelayPool(relays);
|
||||||
// side-effects based on them, such as trending hashtag tracking
|
// side-effects based on them, such as trending hashtag tracking
|
||||||
// and storing events for notifications and the home feed.
|
// and storing events for notifications and the home feed.
|
||||||
pool.subscribe(
|
pool.subscribe(
|
||||||
[{ kinds: [0, 1, 3, 5, 6, 7, 10002], limit: 0 }],
|
[{ kinds: [0, 1, 3, 5, 6, 7, 10002], limit: 0, since: nostrNow() }],
|
||||||
relays,
|
relays,
|
||||||
handleEvent,
|
handleEvent,
|
||||||
undefined,
|
undefined,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue