1
0
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:
Henry
2015-10-23 08:26:18 +02:00
parent 795e24228c
commit aeeed0c72b
2 changed files with 4 additions and 2 deletions

View File

@ -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())