-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: only enable rcmgr by default in full nodes #8769
Conversation
opt-in with envvar for other nodes, as there are still some issues with markets related protocols
Needs backport to nv16 branch for v1.16.0 release. |
node/modules/lp2p/rcmgr.go
Outdated
envvar := os.Getenv("LOTUS_RCMGR") | ||
if envvar == "0" { | ||
// this is enabled by default; specify LOTUS_RCMGR=0 to disable | ||
if (isFullNode && envvar == "0") || // enable by default for full nodes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic seems wrong, I think it should be IGNORE, I misread the outer logic of this:
if (isFullNode && envvar == "0") || // enable by default for full nodes | |
if (isFullNode && envvar != "0") || // enable by default for full nodes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the branch is for disabling, logic is correct.
Maybe fix the comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I retract comment, the entire if block is to do network.NullResourceManager
, I am a muppet ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might want to fix the comment to avoid tripping casual reading.
Any suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LFG 🚀
Co-authored-by: Peter Rabbitson <ribasushi@protocol.ai>
Co-authored-by: Peter Rabbitson <ribasushi@protocol.ai>
opt-in with envvar for other nodes, as there are still some issues with markets related protocols