Give argument intent revealing name (and add comment)

This commit is contained in:
Michael Avila 2019-05-14 08:45:57 -07:00
parent 23e1b1db3a
commit 992ec291bc
No known key found for this signature in database
GPG Key ID: EC20A5E4E97A5E1E

View File

@ -223,8 +223,11 @@ func Online(bcfg *BuildCfg, cfg *config.Config) fx.Option {
recordLifetime = d
}
/* don't provide from bitswap when the strategic provider service is active */
shouldBitswapProvide := !cfg.Experimental.StrategicProviding
return fx.Options(
fx.Provide(OnlineExchange(!cfg.Experimental.StrategicProviding)),
fx.Provide(OnlineExchange(shouldBitswapProvide)),
fx.Provide(Namesys(ipnsCacheSize)),
fx.Invoke(IpnsRepublisher(repubPeriod, recordLifetime)),