mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 20:07:45 +08:00
feat(bitswap) broadcast block to routing, peers on receipt
This commit is contained in:
parent
98a6e9fac2
commit
71aed67413
@ -118,6 +118,7 @@ func (bs *bitswap) ReceiveMessage(
|
||||
for _, block := range incoming.Blocks() {
|
||||
go bs.blockstore.Put(block) // FIXME(brian): err ignored
|
||||
go bs.notifications.Publish(block)
|
||||
go bs.HasBlock(ctx, block) // FIXME err ignored
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user