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

This commit is contained in:
ucwong 2020-04-02 21:54:59 +08:00 committed by GitHub
parent 66ed58bfcc
commit 4d891f23b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {