-
-
Notifications
You must be signed in to change notification settings - Fork 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
refactor(config): remove Swarm.ConnMgr defaults #8913
refactor(config): remove Swarm.ConnMgr defaults #8913
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
0b7809a
to
c1c92db
Compare
ec4b83f
to
22ece13
Compare
22ece13
to
a47c4a4
Compare
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've rebased this and updated docs. Lgtm.
- This PR enables us to change implicit defaults without having to modify user config.
- One-time config migration may be useful, to remove historical defaults from user configs, but that would be a separate PR, where we also lower the defaults (no need to keep hundreds of connections around anymore, its a relict from the time DHT was not performing well).
Let's park this until next week – if there is 0.17.0-rc2, we would like to include this. If not, it can wait until 0.18.
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.
Per 2022-11-15 standup, the change conceptually makes sense and sounds good.
We can remove the rcmgr_defaults.go change due to recent changes in #9407
This moves defaults to Kubo code, cleaning up config. If value is in config, we assume it is an explicit choice made by user. Makes migrations easier.
a47c4a4
to
d2f3fd9
Compare
Fixes #8845.
Sorry for the delay. I was digging around config's
Optional
structs implementation to look for a cleaner approach but that shouldn't be blocking this (it can be addressed later in a separate issue).