From 3c8aa18f70d54edbef778659485da8c4bd7af2a9 Mon Sep 17 00:00:00 2001 From: vyzo Date: Tue, 12 Apr 2022 11:32:37 +0300 Subject: [PATCH] enabled rcmgr by default; disable with LOTUS_RCMGR=0 --- node/modules/lp2p/rcmgr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/modules/lp2p/rcmgr.go b/node/modules/lp2p/rcmgr.go index d0906fd8f..13d97418a 100644 --- a/node/modules/lp2p/rcmgr.go +++ b/node/modules/lp2p/rcmgr.go @@ -28,8 +28,8 @@ import ( func ResourceManager(connMgrHi uint) func(lc fx.Lifecycle, repo repo.LockedRepo) (network.ResourceManager, error) { return func(lc fx.Lifecycle, repo repo.LockedRepo) (network.ResourceManager, error) { envvar := os.Getenv("LOTUS_RCMGR") - if envvar == "" || envvar == "0" { - // TODO opt-in for now -- flip this to enabled by default once we are comfortable with testing + if envvar == "0" { + // this is enabled by default; specify LOTUS_RCMGR=0 to disable log.Info("libp2p resource manager is disabled") return network.NullResourceManager, nil }