mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
Give argument intent revealing name (and add comment)
This commit is contained in:
parent
23e1b1db3a
commit
992ec291bc
@ -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)),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user