Skip to content

Commit

Permalink
les: add missing Ticker.Stop call (ethereum#20864)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong authored Apr 2, 2020
1 parent 66ed58b commit 4d891f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions les/costtracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ func (ct *costTracker) gfLoop() {
log.Debug("global cost factor saved", "value", factor)
}
saveTicker := time.NewTicker(time.Minute * 10)
defer saveTicker.Stop()

for {
select {
Expand Down

0 comments on commit 4d891f2

Please sign in to comment.