提交 36cf839a 作者: Steven Allen

bitswap: remove useless code

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 764cbe1c
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论