mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
Merge pull request #863 from maticnetwork/vaibhav/RequestCancellation
eth/protocols/eth: fix: remove cancelled request from tracker's list
This commit is contained in:
commit
773905ec59
1 changed files with 1 additions and 0 deletions
|
|
@ -212,6 +212,7 @@ func (p *Peer) dispatcher() {
|
||||||
}
|
}
|
||||||
// Stop tracking the request
|
// Stop tracking the request
|
||||||
delete(pending, cancelOp.id)
|
delete(pending, cancelOp.id)
|
||||||
|
requestTracker.Fulfil(p.id, p.version, req.code, cancelOp.id)
|
||||||
cancelOp.fail <- nil
|
cancelOp.fail <- nil
|
||||||
|
|
||||||
case resOp := <-p.resDispatch:
|
case resOp := <-p.resDispatch:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue