mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
firehose: expand criteria, improve logging
This commit is contained in:
parent
b11677573b
commit
45a3e2974e
1 changed files with 2 additions and 2 deletions
|
|
@ -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<void> {
|
||||
console.info('firehose event:', event.id);
|
||||
console.info(`firehose: Event<${event.kind}> ${event.id}`);
|
||||
|
||||
trackHashtags(event);
|
||||
trackRelays(event);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue