Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
84400e22
Commit
84400e22
authored
Oct 24, 2018
by
vyzo
Browse files
fix typo
parent
4f903936
Changes
2
Hide whitespace changes
Inline
Side-by-side
p2p/host/relay/autorelay.go
View file @
84400e22
...
...
@@ -21,7 +21,7 @@ import (
)
const
(
RelayRenezvous
=
"/libp2p/relay"
RelayRen
d
ezvous
=
"/libp2p/relay"
)
var
(
...
...
@@ -125,7 +125,7 @@ func (h *AutoRelayHost) findRelays(ctx context.Context) {
}
dctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
60
*
time
.
Second
)
pis
,
err
:=
discovery
.
FindPeers
(
dctx
,
h
.
discover
,
RelayRenezvous
,
limit
)
pis
,
err
:=
discovery
.
FindPeers
(
dctx
,
h
.
discover
,
RelayRen
d
ezvous
,
limit
)
cancel
()
if
err
!=
nil
{
log
.
Debugf
(
"error discovering relays: %s"
,
err
.
Error
())
...
...
p2p/host/relay/relay.go
View file @
84400e22
...
...
@@ -25,7 +25,7 @@ func NewRelayHost(ctx context.Context, bhost *basic.BasicHost, advertise discove
advertise
:
advertise
,
}
bhost
.
AddrsFactory
=
h
.
hostAddrs
discovery
.
Advertise
(
ctx
,
advertise
,
RelayRenezvous
)
discovery
.
Advertise
(
ctx
,
advertise
,
RelayRen
d
ezvous
)
return
h
}
...
...
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