feat: clear buffers if the request is canceled

This commit is contained in:
healthykim 2025-11-14 22:33:48 +09:00
parent bfc878ed36
commit 1f32d8959a

View file

@ -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: