Browse Source

fix typo

pull/454/head
vyzo 6 years ago
parent
commit
84400e22f2
  1. 4
      p2p/host/relay/autorelay.go
  2. 2
      p2p/host/relay/relay.go

4
p2p/host/relay/autorelay.go

@ -21,7 +21,7 @@ import (
)
const (
RelayRenezvous = "/libp2p/relay"
RelayRendezvous = "/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, RelayRendezvous, limit)
cancel()
if err != nil {
log.Debugf("error discovering relays: %s", err.Error())

2
p2p/host/relay/relay.go

@ -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, RelayRendezvous)
return h
}

Loading…
Cancel
Save