Skip to content

Commit

Permalink
bringing back min delay - boosting lookahead
Browse files Browse the repository at this point in the history
  • Loading branch information
Bossett committed Sep 9, 2024
1 parent 4a283df commit 78cfab1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/labelEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ type Event = {

const waitTime =
env.limits.PDS_LIMIT_MAX_CONCURRENT /
(env.limits.PDS_LIMIT_MAX_RATE / env.limits.PDS_LIMIT_RATE_INTERVAL_MS) +
1000
(env.limits.PDS_LIMIT_MAX_RATE / env.limits.PDS_LIMIT_RATE_INTERVAL_MS)

export default async function labelEmitter() {
do {
Expand All @@ -38,7 +37,7 @@ export default async function labelEmitter() {
action: true,
unixtimescheduled: true,
},
limit: 2 * Math.floor(env.limits.PDS_LIMIT_MAX_CONCURRENT),
limit: 10 * Math.floor(env.limits.PDS_LIMIT_MAX_CONCURRENT),
})
if (events.length > 0) {
const [completedEvents, groupedEvents, eventLog] = await processEvents(
Expand Down

0 comments on commit 78cfab1

Please sign in to comment.