1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 23:42:20 +08:00

add worker to bitswap for reproviding new blocks

This commit is contained in:
Jeromy
2015-02-18 08:18:19 +00:00
parent d8f9f52498
commit d7eb57f48f
3 changed files with 156 additions and 91 deletions

View File

@ -42,3 +42,9 @@ func (b *Block) Key() u.Key {
func (b *Block) String() string {
return fmt.Sprintf("[Block %s]", b.Key())
}
func (b *Block) Loggable() map[string]interface{} {
return map[string]interface{}{
"block": b.Key().String(),
}
}