Skip to content

Commit

Permalink
update cursor less often
Browse files Browse the repository at this point in the history
  • Loading branch information
Bossett committed Sep 5, 2024
1 parent 5fc9dd4 commit 2ef5a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 2ef5a3f

Please sign in to comment.