Skip to content

Commit

Permalink
chore: address todo in engine.go
Browse files Browse the repository at this point in the history
This commit was moved from ipfs/go-bitswap@3895cc0
  • Loading branch information
Stebalien committed Mar 26, 2020
1 parent feabf10 commit 5fe4612
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bitswap/internal/decision/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,7 @@ func (e *Engine) MessageSent(p peer.ID, m bsmsg.BitSwapMessage) {

// Remove sent block presences from the want list for the peer
for _, bp := range m.BlockPresences() {
// TODO: record block presence bytes as well?
// l.SentBytes(?)
// Don't record sent data. We reserve that for data blocks.
if bp.Type == pb.Message_Have {
l.wantList.RemoveType(bp.Cid, pb.Message_Wantlist_Have)
}
Expand Down

0 comments on commit 5fe4612

Please sign in to comment.