Fix typo
Kishan Mohanbhai Sagathiya committed
Sep 28, 2019 at 15:12 UTC
f0253dd108763c0d66fb647d46164fe3225e397a
2 files changed
+3
-3
core/node/groups.go
+2
-2
@@ -7,7 +7,7 @@ import (
7
"time"
8
9
blockstore "github.com/ipfs/go-ipfs-blockstore"
10
- "github.com/ipfs/go-ipfs-config"
10
+ config "github.com/ipfs/go-ipfs-config"
11
util "github.com/ipfs/go-ipfs-util"
12
peer "github.com/libp2p/go-libp2p-core/peer"
13
"github.com/libp2p/go-libp2p-peerstore/pstoremem"
@@ -108,7 +108,7 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option {
108
109
maybeProvide(libp2p.BandwidthCounter, !cfg.Swarm.DisableBandwidthMetrics),
110
maybeProvide(libp2p.NatPortMap, !cfg.Swarm.DisableNatPortMap),
111
- maybeProvide(libp2p.AutoRealy, cfg.Swarm.EnableAutoRelay),
111
+ maybeProvide(libp2p.AutoRelay, cfg.Swarm.EnableAutoRelay),
112
maybeProvide(libp2p.QUIC, cfg.Experimental.QUIC),
113
maybeInvoke(libp2p.AutoNATService(cfg.Experimental.QUIC), cfg.Swarm.EnableAutoNATService),
114
connmgr,
core/node/libp2p/relay.go
+1
-1
@@ -21,4 +21,4 @@ func Relay(disable, enableHop bool) func() (opts Libp2pOpts, err error) {
21
}
22
}
23
24
-var AutoRealy = simpleOpt(libp2p.EnableAutoRelay())
24
+var AutoRelay = simpleOpt(libp2p.EnableAutoRelay())