@@ -112,10 +112,10 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option {
112112 }
113113
114114 // If `cfg.Swarm.DisableRelay` is set and `Network.RelayTransport` isn't, use the former.
115- enableRelayTransport := cfg .Swarm .Transports .Network .Relay .WithDefault (! cfg .Swarm .DisableRelay ) //nolint
115+ enableRelayTransport := cfg .Swarm .Transports .Network .Relay .WithDefault (! cfg .Swarm .DisableRelay ) // nolint
116116
117117 // Warn about a deprecated option.
118- //nolint
118+ // nolint
119119 if cfg .Swarm .DisableRelay {
120120 logger .Error ("The 'Swarm.DisableRelay' config field is deprecated." )
121121 if enableRelayTransport {
@@ -124,7 +124,7 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option {
124124 logger .Error ("Use the 'Swarm.Transports.Network.Relay' config field instead" )
125125 }
126126 }
127- //nolint
127+ // nolint
128128 if cfg .Swarm .EnableAutoRelay {
129129 logger .Error ("The 'Swarm.EnableAutoRelay' config field is deprecated." )
130130 if cfg .Swarm .RelayClient .Enabled == config .Default {
@@ -133,7 +133,7 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option {
133133 logger .Error ("'Swarm.EnableAutoRelay' has been overridden by 'Swarm.AutoRelay.Enabled'" )
134134 }
135135 }
136- //nolint
136+ // nolint
137137 if cfg .Swarm .EnableRelayHop {
138138 logger .Fatal ("The `Swarm.EnableRelayHop` config field is ignored.\n " +
139139 "Use `Swarm.RelayService` to configure the circuit v2 relay.\n " +
@@ -144,6 +144,7 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option {
144144 opts := fx .Options (
145145 BaseLibP2P ,
146146
147+ fx .Provide (libp2p .ResourceManager ()),
147148 fx .Provide (libp2p .AddrFilters (cfg .Swarm .AddrFilters )),
148149 fx .Provide (libp2p .AddrsFactory (cfg .Addresses .Announce , cfg .Addresses .AppendAnnounce , cfg .Addresses .NoAnnounce )),
149150 fx .Provide (libp2p .SmuxTransport (cfg .Swarm .Transports )),
0 commit comments