Skip to content

Commit

Permalink
doc(bitswap:strat) add note to remove blocks from peer's wantlist after
Browse files Browse the repository at this point in the history
sending
  • Loading branch information
Brian Tiger Chow committed Sep 22, 2014
1 parent f3c4259 commit d64c5ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exchange/bitswap/strategy/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d64c5ce

Please sign in to comment.