Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
d1a791cb
Commit
d1a791cb
authored
Feb 20, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(bitswap): remove CancelWants function
Fixes #50.
parent
ab7ddf00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
bitswap.go
bitswap.go
+0
-8
No files found.
bitswap.go
View file @
d1a791cb
...
...
@@ -239,14 +239,6 @@ func (bs *Bitswap) GetBlocks(ctx context.Context, keys []cid.Cid) (<-chan blocks
return
session
.
GetBlocks
(
ctx
,
keys
)
}
// CancelWants removes a given key from the wantlist.
func
(
bs
*
Bitswap
)
CancelWants
(
cids
[]
cid
.
Cid
,
ses
uint64
)
{
if
len
(
cids
)
==
0
{
return
}
bs
.
wm
.
CancelWants
(
context
.
Background
(),
cids
,
nil
,
ses
)
}
// HasBlock announces the existence of a block to this bitswap service. The
// service will potentially notify its peers.
func
(
bs
*
Bitswap
)
HasBlock
(
blk
blocks
.
Block
)
error
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment