Skip to content

Commit

Permalink
Rename ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
ironbeer committed Oct 3, 2024
1 parent efc207f commit 611e525
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions verifier/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ func (w *Verifier) Start(ctx context.Context) {
cacheCleanupTick := time.NewTicker(time.Hour)
defer cacheCleanupTick.Stop()

tick := time.NewTicker(verificationInterval)
defer tick.Stop()
workTick := time.NewTicker(verificationInterval)
defer workTick.Stop()

w.log.Info("Verification workers started",
"max-workers", maxVerificationWorkers, "interval", verificationInterval)
Expand All @@ -126,7 +126,7 @@ func (w *Verifier) Start(ctx context.Context) {
}
return true
})
case <-tick.C:
case <-workTick.C:
w.versepool.Range(func(item *verse.VersePoolItem) bool {
log := item.Verse().Logger(w.log)

Expand Down

0 comments on commit 611e525

Please sign in to comment.