Skip to content

Commit ad4b60e

Browse files
authored
miner/worker: add missing timer.Stop call (#20857)
1 parent c87cdd3 commit ad4b60e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎miner/worker.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ func (w *worker) newWorkLoop(recommit time.Duration) {
297297
)
298298

299299
timer := time.NewTimer(0)
300+
defer timer.Stop()
300301
<-timer.C // discard the initial tick
301302

302303
// commit aborts in-flight transaction execution with given signal and resubmits a new one.

0 commit comments

Comments
 (0)