Skip to content

Commit

Permalink
fix(rln-relay): update block poll rate
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Jan 23, 2024
1 parent 1058cc1 commit e01e883
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions waku/waku_rln_relay/group_manager/on_chain/group_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type
const DefaultKeyStorePath* = "rlnKeystore.json"
const DefaultKeyStorePassword* = "password"

const DefaultBlockPollRate* = 1.seconds
const DefaultBlockPollRate* = 6.seconds

template initializedGuard(g: OnchainGroupManager): untyped =
if not g.initialized:
Expand Down Expand Up @@ -347,9 +347,9 @@ proc runInInterval(g: OnchainGroupManager, cb: proc, interval: Duration): void =
g.blockFetchingActive = true

while g.blockFetchingActive:
var retCb: bool
var retCb: void
retryWrapper(retCb, RetryStrategy.new(), "Failed to run the interval loop"):
await cb()
cb()
await sleepAsync(interval)

asyncSpawn runIntervalLoop()
Expand Down

0 comments on commit e01e883

Please sign in to comment.