les: add missing Ticker.Stop call (#20864)

pull/20875/head
ucwong 5 years ago committed by GitHub
parent 66ed58bfcc
commit 4d891f23b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      les/costtracker.go

@ -269,6 +269,7 @@ func (ct *costTracker) gfLoop() {
log.Debug("global cost factor saved", "value", factor) log.Debug("global cost factor saved", "value", factor)
} }
saveTicker := time.NewTicker(time.Minute * 10) saveTicker := time.NewTicker(time.Minute * 10)
defer saveTicker.Stop()
for { for {
select { select {

Loading…
Cancel
Save