Skip to content

Commit

Permalink
5k pending
Browse files Browse the repository at this point in the history
  • Loading branch information
Bossett committed Sep 6, 2024
1 parent 3e81598 commit 386fa98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/env/limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const limits = {
POST_CACHE_MAX_SIZE: 3000,
MIN_BATCH_WAIT_TIME_MS: 500,
BATCH_CYCLE_TIMEOUT_MS: 3 * 60 * 1000,
FIREHOSE_MAX_PENDING: 5000,
}

const validateLimits = {
Expand Down
2 changes: 1 addition & 1 deletion src/firehoseWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default async function firehoseWatcher() {
service: env.SERVICE_ENDPOINT,
seq: seq,
timeout: env.limits.MAX_FIREHOSE_DELAY,
maxPending: 1000,
maxPending: env.limits.FIREHOSE_MAX_PENDING,
includeTypes: ['app.bsky.feed.post', 'app.bsky.actor.profile'],
})

Expand Down

0 comments on commit 386fa98

Please sign in to comment.