Commit bf9c5c87 authored by Joshua Gutow's avatar Joshua Gutow Committed by GitHub

Fix leaky timer.After (#2932)

Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent cc8c9838
......@@ -136,9 +136,12 @@ func (s *Service) eventLoop() {
}
}
ticker := time.NewTicker(s.cfg.PollInterval)
defer ticker.Stop()
for {
select {
case <-time.After(s.cfg.PollInterval):
case <-ticker.C:
// Record the submitter's current ETH balance. This is done first in
// case any of the remaining steps fail, we can at least have an
// accurate view of the submitter's balance.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment