Commit 84400e22 authored by vyzo's avatar vyzo
Browse files

fix typo

parent 4f903936
...@@ -21,7 +21,7 @@ import ( ...@@ -21,7 +21,7 @@ import (
) )
const ( const (
RelayRenezvous = "/libp2p/relay" RelayRendezvous = "/libp2p/relay"
) )
var ( var (
...@@ -125,7 +125,7 @@ func (h *AutoRelayHost) findRelays(ctx context.Context) { ...@@ -125,7 +125,7 @@ func (h *AutoRelayHost) findRelays(ctx context.Context) {
} }
dctx, cancel := context.WithTimeout(ctx, 60*time.Second) dctx, cancel := context.WithTimeout(ctx, 60*time.Second)
pis, err := discovery.FindPeers(dctx, h.discover, RelayRenezvous, limit) pis, err := discovery.FindPeers(dctx, h.discover, RelayRendezvous, limit)
cancel() cancel()
if err != nil { if err != nil {
log.Debugf("error discovering relays: %s", err.Error()) log.Debugf("error discovering relays: %s", err.Error())
......
...@@ -25,7 +25,7 @@ func NewRelayHost(ctx context.Context, bhost *basic.BasicHost, advertise discove ...@@ -25,7 +25,7 @@ func NewRelayHost(ctx context.Context, bhost *basic.BasicHost, advertise discove
advertise: advertise, advertise: advertise,
} }
bhost.AddrsFactory = h.hostAddrs bhost.AddrsFactory = h.hostAddrs
discovery.Advertise(ctx, advertise, RelayRenezvous) discovery.Advertise(ctx, advertise, RelayRendezvous)
return h return h
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment