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

release/1.9
ucwong 5 years ago committed by GitHub
parent c87cdd3053
commit ad4b60efdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      miner/worker.go

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

Loading…
Cancel
Save