mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-13 10:21:37 +00:00
feat: clear buffers if the request is canceled
This commit is contained in:
parent
bfc878ed36
commit
1f32d8959a
1 changed files with 5 additions and 0 deletions
|
|
@ -230,6 +230,11 @@ func (p *Peer) dispatcher() {
|
|||
}
|
||||
// Stop tracking the request
|
||||
delete(pending, cancelOp.id)
|
||||
|
||||
// Not sure if the request is about the receipt, but removing it anyway
|
||||
delete(p.receiptBuffer, cancelOp.id)
|
||||
delete(p.requestedReceipts, cancelOp.id)
|
||||
|
||||
cancelOp.fail <- nil
|
||||
|
||||
case resOp := <-p.resDispatch:
|
||||
|
|
|
|||
Loading…
Reference in a new issue