1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 01:52:26 +08:00

doc(bitswap:strat) add note to remove blocks from peer's wantlist after

sending
This commit is contained in:
Brian Tiger Chow
2014-09-22 03:15:35 -07:00
parent 9d7ae40003
commit b85d1554cc

View File

@ -89,6 +89,9 @@ func (s *strategist) MessageSent(p *peer.Peer, m bsmsg.BitSwapMessage) error {
for _, block := range m.Blocks() {
l.SentBytes(len(block.Data))
}
// TODO remove these blocks from peer's want list
return nil
}