@cryptotaxi247 / kubo / commits / 36cf839a5

bitswap: remove useless code

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Dec 5, 2017 at 09:48 UTC 36cf839a559d33ed763d676bb6441dc26b38cbbf
1 file changed -10
exchange/bitswap/bitswap.go
-10
@@ -372,16 +372,6 @@ func (bs *Bitswap) ReceiveMessage(ctx context.Context, p peer.ID, incoming bsmsg
372 return
373 }
374
375 - // quickly send out cancels, reduces chances of duplicate block receives
376 - var keys []*cid.Cid
377 - for _, block := range iblocks {
378 - if _, found := bs.wm.wl.Contains(block.Cid()); !found {
379 - log.Infof("received un-asked-for %s from %s", block, p)
380 - continue
381 - }
382 - keys = append(keys, block.Cid())
383 - }
384 -
375 wg := sync.WaitGroup{}
376 for _, block := range iblocks {
377 wg.Add(1)