Reduce default FIREHOSE_CONCURRENCY to 1

This commit is contained in:
Alex Gleason 2025-01-25 01:46:08 -06:00
parent 75be90694c
commit a8b8b8b427
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -248,7 +248,7 @@ class Conf {
}
/** Number of events the firehose is allowed to process at one time before they have to wait in a queue. */
static get firehoseConcurrency(): number {
return Math.ceil(Number(Deno.env.get('FIREHOSE_CONCURRENCY') ?? (Conf.pg.poolSize * 0.25)));
return Math.ceil(Number(Deno.env.get('FIREHOSE_CONCURRENCY') ?? 1));
}
/** Nostr event kinds of events to listen for on the firehose. */
static get firehoseKinds(): number[] {