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
435e8188
Commit
435e8188
authored
Feb 25, 2015
by
Henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't ignore returned cancelFunc()
parent
006df7db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
routing/dht/records.go
routing/dht/records.go
+2
-1
No files found.
routing/dht/records.go
View file @
435e8188
...
...
@@ -28,7 +28,8 @@ func (dht *IpfsDHT) getPublicKeyOnline(ctx context.Context, p peer.ID) (ci.PubKe
}
// ok, try the node itself. if they're overwhelmed or slow we can move on.
ctxT
,
_
:=
ctxutil
.
WithDeadlineFraction
(
ctx
,
0.3
)
ctxT
,
cancelFunc
:=
ctxutil
.
WithDeadlineFraction
(
ctx
,
0.3
)
defer
cancelFunc
()
if
pk
,
err
:=
dht
.
getPublicKeyFromNode
(
ctx
,
p
);
err
==
nil
{
return
pk
,
nil
}
...
...
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