From 992ec291bc4531e217cb625fec1cc915cfd68477 Mon Sep 17 00:00:00 2001 From: Michael Avila Date: Tue, 14 May 2019 08:45:57 -0700 Subject: [PATCH] Give argument intent revealing name (and add comment) --- core/node/groups.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/node/groups.go b/core/node/groups.go index 5b37e1b38..8ccc3df50 100644 --- a/core/node/groups.go +++ b/core/node/groups.go @@ -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)),