@cryptotaxi247 / kubo / commits / 992ec291b

Give argument intent revealing name (and add comment)

Michael Avila committed May 14, 2019 at 08:45 UTC 992ec291bc4531e217cb625fec1cc915cfd68477
1 file changed +4 -1
core/node/groups.go
+4 -1
@@ -223,8 +223,11 @@ func Online(bcfg *BuildCfg, cfg *config.Config) fx.Option {
223 recordLifetime = d
224 }
225
226 + /* don't provide from bitswap when the strategic provider service is active */
227 + shouldBitswapProvide := !cfg.Experimental.StrategicProviding
228 +
229 return fx.Options(
227 - fx.Provide(OnlineExchange(!cfg.Experimental.StrategicProviding)),
230 + fx.Provide(OnlineExchange(shouldBitswapProvide)),
231 fx.Provide(Namesys(ipnsCacheSize)),
232
233 fx.Invoke(IpnsRepublisher(repubPeriod, recordLifetime)),