Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8470 from filecoin-project/feat/enable-rcmgr-by-d…
Browse files Browse the repository at this point in the history
…efault

enable rcmgr by default
  • Loading branch information
jennijuju authored Apr 12, 2022
2 parents cf92776 + 3c8aa18 commit ce3c647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/modules/lp2p/rcmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ce3c647

Please sign in to comment.