From 4d891f23b5a03ab8a8f64dd1683018942a5c7b0a Mon Sep 17 00:00:00 2001 From: ucwong Date: Thu, 2 Apr 2020 21:54:59 +0800 Subject: [PATCH] les: add missing Ticker.Stop call (#20864) --- les/costtracker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/les/costtracker.go b/les/costtracker.go index 81da04566..0558779bc 100644 --- a/les/costtracker.go +++ b/les/costtracker.go @@ -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 {