Fix:Removing the cancelled request from the tracker's list

This commit is contained in:
Vaibhav Jindal 2023-05-12 15:56:10 +05:30
parent cac3de1abf
commit 08e1f21f34

View file

@ -212,6 +212,7 @@ func (p *Peer) dispatcher() {
}
// Stop tracking the request
delete(pending, cancelOp.id)
requestTracker.Fulfil(p.id, p.version, req.code, cancelOp.id)
cancelOp.fail <- nil
case resOp := <-p.resDispatch: