Skip to content

Commit

Permalink
chore: update nextEpochTime
Browse files Browse the repository at this point in the history
  • Loading branch information
darshankabariya committed Dec 11, 2024
1 parent 3e3b0a1 commit 25c4040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waku/waku_rln_relay/rln_relay.nim
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,11 @@ proc generateRlnValidator*(
proc monitorEpochs(wakuRlnRelay: WakuRLNRelay): Future[void] {.async.} =
while true:
try:
let nextEpochTime = wakuRlnRelay.nextEpochTime(epochTime())
await sleepAsync(int((nextEpochTime - epochTime()) * 1000))
waku_rln_remaining_proofs_per_epoch.set(
wakuRlnRelay.groupManager.userMessageLimit.get().float64
)
let nextEpochTime = wakuRlnRelay.nextEpochTime(epochTime())
await sleepAsync(int((nextEpochTime - epochTime()) * 1000))
except CatchableError:
error "Error in epoch monitoring", error = getCurrentExceptionMsg()

Expand Down

0 comments on commit 25c4040

Please sign in to comment.