Skip to content

Commit

Permalink
make code time independent
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Sep 11, 2024
1 parent 6fe369e commit 789ea52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/reprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ func (s *reprovider) run() {

// setup stopped timers
maxCollectionDurationTimer := time.NewTimer(time.Hour)
maxCollectionDurationTimer.Stop()
pauseDetectTimer := time.NewTimer(time.Hour)
pauseDetectTimer.Stop()
stopAndEmptyTimer(maxCollectionDurationTimer)
stopAndEmptyTimer(pauseDetectTimer)

// make sure timers are cleaned up
defer maxCollectionDurationTimer.Stop()
Expand Down

0 comments on commit 789ea52

Please sign in to comment.