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-dms3
Commits
4b82c899
Commit
4b82c899
authored
Nov 04, 2016
by
Jeromy Johnson
Committed by
GitHub
Nov 04, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3353 from ipfs/fix/diag-hang
respect contexts when returning diagnostics responses
parents
a9df187e
7728124b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
diagnostics/diag.go
diagnostics/diag.go
+5
-1
No files found.
diagnostics/diag.go
View file @
4b82c899
...
...
@@ -191,7 +191,11 @@ func (d *Diagnostics) getDiagnosticFromPeers(ctx context.Context, peers map[peer
return
}
for
d
:=
range
out
{
respdata
<-
d
select
{
case
respdata
<-
d
:
case
<-
ctx
.
Done
()
:
return
}
}
}(
p
)
}
...
...
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