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
63c8a9eb
Commit
63c8a9eb
authored
Jun 15, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass reference to reader instead of using the one on the object
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
79e9bd84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
routing/dht/dht_net.go
routing/dht/dht_net.go
+3
-3
No files found.
routing/dht/dht_net.go
View file @
63c8a9eb
...
...
@@ -230,9 +230,9 @@ func (ms *messageSender) SendRequest(ctx context.Context, pmes *pb.Message) (*pb
func
(
ms
*
messageSender
)
ctxReadMsg
(
ctx
context
.
Context
,
mes
*
pb
.
Message
)
error
{
errc
:=
make
(
chan
error
,
1
)
go
func
()
{
errc
<-
ms
.
r
.
ReadMsg
(
mes
)
}()
go
func
(
r
ggio
.
ReadCloser
)
{
errc
<-
r
.
ReadMsg
(
mes
)
}(
ms
.
r
)
select
{
case
err
:=
<-
errc
:
...
...
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