Commit 554b5a49 authored by Brian Tiger Chow's avatar Brian Tiger Chow

chore(bitswap) rm unused helper func

parent b40ee0f1
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment