From 2ef5a3f79e72fa677709033bfd81632f25505cca Mon Sep 17 00:00:00 2001 From: Bossett Date: Thu, 5 Sep 2024 01:08:38 +0000 Subject: [PATCH] update cursor less often --- src/util/subscription.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/subscription.ts b/src/util/subscription.ts index 3986903..460b3d3 100755 --- a/src/util/subscription.ts +++ b/src/util/subscription.ts @@ -64,8 +64,8 @@ export abstract class FirehoseSubscriptionBase { // no longer awaiting this } - // update stored cursor every 100 events or so - if (isCommit(evt) && evt.seq % 100 === 0) { + // update stored cursor every 1000 events or so + if (isCommit(evt) && evt.seq % 1000 === 0) { await this.updateCursor(evt.seq) } }