mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 09:52:20 +08:00
bitswap: clean log printf and humanize dup data count
License: MIT Signed-off-by: Henry <cryptix@riseup.net>
This commit is contained in:
@ -308,7 +308,7 @@ func (bs *Bitswap) ReceiveMessage(ctx context.Context, p peer.ID, incoming bsmsg
|
||||
var keys []key.Key
|
||||
for _, block := range iblocks {
|
||||
if _, found := bs.wm.wl.Contains(block.Key()); !found {
|
||||
log.Info("received un-asked-for block: %s", block)
|
||||
log.Infof("received un-asked-for %s from %s", block, p)
|
||||
continue
|
||||
}
|
||||
keys = append(keys, block.Key())
|
||||
|
Reference in New Issue
Block a user