Commit 39d168d6 authored by Steven Allen's avatar Steven Allen

bitswap: remove useless code

License: MIT
Signed-off-by: default avatarSteven Allen <steven@stebalien.com>
parent bd024d24
......@@ -372,16 +372,6 @@ func (bs *Bitswap) ReceiveMessage(ctx context.Context, p peer.ID, incoming bsmsg
return
}
// quickly send out cancels, reduces chances of duplicate block receives
var keys []*cid.Cid
for _, block := range iblocks {
if _, found := bs.wm.wl.Contains(block.Cid()); !found {
log.Infof("received un-asked-for %s from %s", block, p)
continue
}
keys = append(keys, block.Cid())
}
wg := sync.WaitGroup{}
for _, block := range iblocks {
wg.Add(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment