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
ffef00d9
Commit
ffef00d9
authored
Feb 26, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(prq): don't try to cancel finished provider requests
parent
9394d3b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
providerquerymanager/providerquerymanager.go
providerquerymanager/providerquerymanager.go
+3
-1
No files found.
providerquerymanager/providerquerymanager.go
View file @
ffef00d9
...
...
@@ -177,7 +177,9 @@ func (pqm *ProviderQueryManager) receiveProviders(sessionCtx context.Context, k
case
<-
pqm
.
ctx
.
Done
()
:
return
case
<-
sessionCtx
.
Done
()
:
pqm
.
cancelProviderRequest
(
k
,
incomingProviders
)
if
incomingProviders
!=
nil
{
pqm
.
cancelProviderRequest
(
k
,
incomingProviders
)
}
return
case
provider
,
ok
:=
<-
incomingProviders
:
if
!
ok
{
...
...
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