From b85d1554cc3f3de3ce3c692723730e3d587c2027 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Mon, 22 Sep 2014 03:15:35 -0700 Subject: [PATCH] doc(bitswap:strat) add note to remove blocks from peer's wantlist after sending --- exchange/bitswap/strategy/strategy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exchange/bitswap/strategy/strategy.go b/exchange/bitswap/strategy/strategy.go index 1cd4a021f..5d09f30b5 100644 --- a/exchange/bitswap/strategy/strategy.go +++ b/exchange/bitswap/strategy/strategy.go @@ -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 }