Unverified Commit 4d891f23 authored by ucwong's avatar ucwong Committed by GitHub

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

parent 66ed58bf
...@@ -269,6 +269,7 @@ func (ct *costTracker) gfLoop() { ...@@ -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 {
......
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