From f0253dd108763c0d66fb647d46164fe3225e397a Mon Sep 17 00:00:00 2001 From: Kishan Mohanbhai Sagathiya Date: Sat, 28 Sep 2019 15:12:23 +0530 Subject: [PATCH] Fix typo --- core/node/groups.go | 4 ++-- core/node/libp2p/relay.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/node/groups.go b/core/node/groups.go index ab50b3c0a39..31a0f8e07fb 100644 --- a/core/node/groups.go +++ b/core/node/groups.go @@ -7,7 +7,7 @@ import ( "time" blockstore "github.com/ipfs/go-ipfs-blockstore" - "github.com/ipfs/go-ipfs-config" + config "github.com/ipfs/go-ipfs-config" util "github.com/ipfs/go-ipfs-util" peer "github.com/libp2p/go-libp2p-core/peer" "github.com/libp2p/go-libp2p-peerstore/pstoremem" @@ -108,7 +108,7 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option { maybeProvide(libp2p.BandwidthCounter, !cfg.Swarm.DisableBandwidthMetrics), maybeProvide(libp2p.NatPortMap, !cfg.Swarm.DisableNatPortMap), - maybeProvide(libp2p.AutoRealy, cfg.Swarm.EnableAutoRelay), + maybeProvide(libp2p.AutoRelay, cfg.Swarm.EnableAutoRelay), maybeProvide(libp2p.QUIC, cfg.Experimental.QUIC), maybeInvoke(libp2p.AutoNATService(cfg.Experimental.QUIC), cfg.Swarm.EnableAutoNATService), connmgr, diff --git a/core/node/libp2p/relay.go b/core/node/libp2p/relay.go index b9e8afa49cc..59fe1cdd14d 100644 --- a/core/node/libp2p/relay.go +++ b/core/node/libp2p/relay.go @@ -21,4 +21,4 @@ func Relay(disable, enableHop bool) func() (opts Libp2pOpts, err error) { } } -var AutoRealy = simpleOpt(libp2p.EnableAutoRelay()) +var AutoRelay = simpleOpt(libp2p.EnableAutoRelay())