From 84400e22f2b6fc9b8346d578badfef1956c38f0c Mon Sep 17 00:00:00 2001 From: vyzo Date: Wed, 24 Oct 2018 16:17:49 +0300 Subject: [PATCH] fix typo --- p2p/host/relay/autorelay.go | 4 ++-- p2p/host/relay/relay.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p2p/host/relay/autorelay.go b/p2p/host/relay/autorelay.go index 26140b022..664f82d68 100644 --- a/p2p/host/relay/autorelay.go +++ b/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()) diff --git a/p2p/host/relay/relay.go b/p2p/host/relay/relay.go index 8ba99d5ed..69b673707 100644 --- a/p2p/host/relay/relay.go +++ b/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 }