Skip to content

Commit 66ed58b

Browse files
authored
eth/fetcher: add missing timer.Stop calls (#20861)
1 parent 47f7c73 commit 66ed58b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎eth/fetcher/block_fetcher.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ func (f *BlockFetcher) loop() {
302302
// Iterate the block fetching until a quit is requested
303303
fetchTimer := time.NewTimer(0)
304304
completeTimer := time.NewTimer(0)
305+
defer fetchTimer.Stop()
306+
defer completeTimer.Stop()
305307

306308
for {
307309
// Clean up any expired block fetches

0 commit comments

Comments
 (0)