mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
les: add missing Ticker.Stop call (#20864)
This commit is contained in:
parent
66ed58bfcc
commit
4d891f23b5
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue