Unverified Commit ad4b60ef authored by ucwong's avatar ucwong Committed by GitHub

miner/worker: add missing timer.Stop call (#20857)

parent c87cdd30
...@@ -297,6 +297,7 @@ func (w *worker) newWorkLoop(recommit time.Duration) { ...@@ -297,6 +297,7 @@ func (w *worker) newWorkLoop(recommit time.Duration) {
) )
timer := time.NewTimer(0) timer := time.NewTimer(0)
defer timer.Stop()
<-timer.C // discard the initial tick <-timer.C // discard the initial tick
// commit aborts in-flight transaction execution with given signal and resubmits a new one. // commit aborts in-flight transaction execution with given signal and resubmits a new one.
......
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