Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit c361c24

Browse files
authored
Merge pull request #80 from ipfs/fix/remove-cancel-wants
fix(bitswap): remove CancelWants function
2 parents 39b96ac + d1a791c commit c361c24

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

bitswap.go

-8
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,6 @@ func (bs *Bitswap) GetBlocks(ctx context.Context, keys []cid.Cid) (<-chan blocks
239239
return session.GetBlocks(ctx, keys)
240240
}
241241

242-
// CancelWants removes a given key from the wantlist.
243-
func (bs *Bitswap) CancelWants(cids []cid.Cid, ses uint64) {
244-
if len(cids) == 0 {
245-
return
246-
}
247-
bs.wm.CancelWants(context.Background(), cids, nil, ses)
248-
}
249-
250242
// HasBlock announces the existence of a block to this bitswap service. The
251243
// service will potentially notify its peers.
252244
func (bs *Bitswap) HasBlock(blk blocks.Block) error {

0 commit comments

Comments
 (0)