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
7728124b
Commit
7728124b
authored
Nov 03, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
respect contexts when returning diagnostics responses
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
1ca2d428
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 @
7728124b
...
@@ -191,7 +191,11 @@ func (d *Diagnostics) getDiagnosticFromPeers(ctx context.Context, peers map[peer
...
@@ -191,7 +191,11 @@ func (d *Diagnostics) getDiagnosticFromPeers(ctx context.Context, peers map[peer
return
return
}
}
for
d
:=
range
out
{
for
d
:=
range
out
{
respdata
<-
d
select
{
case
respdata
<-
d
:
case
<-
ctx
.
Done
()
:
return
}
}
}
}(
p
)
}(
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