enabled rcmgr by default; disable with LOTUS_RCMGR=0
This commit is contained in:
parent
0f4019cbb7
commit
3c8aa18f70
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user