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
ee3c3070
Commit
ee3c3070
authored
9 years ago
by
Jeromy Johnson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1174 from ipfs/fix/mdns-panic
hotfix: dont use nodes context because it might not be set yet
parents
cc5f6bb3
9e6866f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
core/core.go
core/core.go
+1
-1
No files found.
core/core.go
View file @
ee3c3070
...
...
@@ -292,7 +292,7 @@ func setupDiscoveryOption(d config.Discovery) DiscoveryOption {
func
(
n
*
IpfsNode
)
HandlePeerFound
(
p
peer
.
PeerInfo
)
{
log
.
Warning
(
"trying peer info: "
,
p
)
ctx
,
_
:=
context
.
WithTimeout
(
n
.
C
ontext
(),
time
.
Second
*
10
)
ctx
,
_
:=
context
.
WithTimeout
(
c
ontext
.
TODO
(),
time
.
Second
*
10
)
err
:=
n
.
PeerHost
.
Connect
(
ctx
,
p
)
if
err
!=
nil
{
log
.
Warning
(
"Failed to connect to peer found by discovery: "
,
err
)
...
...
This diff is collapsed.
Click to expand it.
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