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
33c1f224
Unverified
Commit
33c1f224
authored
Sep 23, 2019
by
Steven Allen
Committed by
GitHub
Sep 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6665 from ipfs/fix/mdns-warning
discovery: improve mdns warnings
parents
c102ed08
416195de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
core/node/libp2p/discovery.go
core/node/libp2p/discovery.go
+2
-2
No files found.
core/node/libp2p/discovery.go
View file @
33c1f224
...
...
@@ -20,11 +20,11 @@ type discoveryHandler struct {
}
func
(
dh
*
discoveryHandler
)
HandlePeerFound
(
p
peer
.
AddrInfo
)
{
log
.
Warning
(
"trying peer info
: "
,
p
)
log
.
Info
(
"connecting to discovered peer
: "
,
p
)
ctx
,
cancel
:=
context
.
WithTimeout
(
dh
.
ctx
,
discoveryConnTimeout
)
defer
cancel
()
if
err
:=
dh
.
host
.
Connect
(
ctx
,
p
);
err
!=
nil
{
log
.
Warning
(
"
F
ailed to connect to peer found by discovery:
"
,
err
)
log
.
Warning
f
(
"
f
ailed to connect to peer
%s
found by discovery:
%s"
,
p
.
ID
,
err
)
}
}
...
...
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