les/fetcher : fix requestTimer leak (#26514)
les/fetcher : fix requestTimer leak
This commit is contained in:
parent
97401b6c63
commit
4a3fb585dd
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user