mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-04 07:48:00 +08:00
chore(bitswap) rm unused helper func
This commit is contained in:
parent
a5fb64071a
commit
331fcd1756
@ -155,10 +155,6 @@ func (bs *bitswap) send(ctx context.Context, p *peer.Peer, m bsmsg.BitSwapMessag
|
||||
bs.strategy.MessageSent(p, m)
|
||||
}
|
||||
|
||||
func numBytes(b blocks.Block) int {
|
||||
return len(b.Data)
|
||||
}
|
||||
|
||||
func (bs *bitswap) sendToPeersThatWant(ctx context.Context, block blocks.Block) {
|
||||
for _, p := range bs.strategy.Peers() {
|
||||
if bs.strategy.BlockIsWantedByPeer(block.Key(), p) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user