Skip to content

Commit

Permalink
fix(ceremony): reduce polling (#3170)
Browse files Browse the repository at this point in the history
As the queue gets bigger and bigger I think it's better to reduce the
request a bit
  • Loading branch information
Swepool authored Oct 29, 2024
2 parents 6213749 + 86b3441 commit f4f5d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ceremony/src/lib/state/contributor.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ type QueueInfoResult = QueueInfoSuccess | QueueInfoError

const second = 1000
const CLIENT_POLING_INTERVAL = second * 5
const CONTRIBUTION_POLLING_INTERVAL = second * 5
const QUEUE_POLLING_INTERVAL = second * 15
const CONTRIBUTION_POLLING_INTERVAL = second * 15
const QUEUE_POLLING_INTERVAL = second * 30

export class Contributor {
userId = $state<string | undefined>(undefined)
Expand Down

0 comments on commit f4f5d97

Please sign in to comment.