mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 19:40:36 +00:00
eth/fetcher: add missing timer.Stop calls (#20861)
This commit is contained in:
parent
47f7c736cb
commit
66ed58bfcc
@ -302,6 +302,8 @@ func (f *BlockFetcher) loop() {
|
||||
// Iterate the block fetching until a quit is requested
|
||||
fetchTimer := time.NewTimer(0)
|
||||
completeTimer := time.NewTimer(0)
|
||||
defer fetchTimer.Stop()
|
||||
defer completeTimer.Stop()
|
||||
|
||||
for {
|
||||
// Clean up any expired block fetches
|
||||
|
Loading…
Reference in New Issue
Block a user