Skip to content

Commit

Permalink
les/fetcher : fix requestTimer leak (ethereum#26514)
Browse files Browse the repository at this point in the history
les/fetcher : fix requestTimer leak
  • Loading branch information
ucwong authored and shekhirin committed Jun 6, 2023
1 parent f7918ce commit 3267593
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions les/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ func (f *lightFetcher) mainloop() {
localHead = f.chain.CurrentHeader()
localTd = f.chain.GetTd(localHead.Hash(), localHead.Number.Uint64())
)
defer requestTimer.Stop()
sub := f.chain.SubscribeChainHeadEvent(headCh)
defer sub.Unsubscribe()

Expand Down

0 comments on commit 3267593

Please sign in to comment.