Skip to content

Commit

Permalink
les/fetcher : fix requestTimer leak linter (#95)
Browse files Browse the repository at this point in the history
les/fetcher : fix requestTimer leak linter (#89)

Co-authored-by: Ryan He <163962984+ryanmorphl2@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and ryanmorphl2 authored Jun 12, 2024
1 parent 6a9a364 commit f68f84a
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 @@ -270,6 +270,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 f68f84a

Please sign in to comment.