Skip to content

Commit b05c673

Browse files
fix ForceReachability dependency injection
1 parent 66f8cf6 commit b05c673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/node/groups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option {
135135
fx.Provide(libp2p.Transports(cfg.Swarm.Transports)),
136136
fx.Invoke(libp2p.StartListening(cfg.Addresses.Swarm)),
137137
fx.Invoke(libp2p.SetupDiscovery(cfg.Discovery.MDNS.Enabled, cfg.Discovery.MDNS.Interval)),
138-
fx.Invoke(libp2p.ForceReachability(cfg.Internal.Libp2pForceReachability)),
138+
fx.Provide(libp2p.ForceReachability(cfg.Internal.Libp2pForceReachability)),
139139

140140
fx.Provide(libp2p.Security(!bcfg.DisableEncryptedConnections, cfg.Swarm.Transports)),
141141

0 commit comments

Comments
 (0)