-
Notifications
You must be signed in to change notification settings - Fork 96
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
subserver+status: check map entries before adding new servers #877
Conversation
So that we can quickly access a sub-server by its name.
Let the status manager first check its map of subservers before registering a new one to ensure that an existing subserver is not being overridden.
5548299
to
db7d365
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.
LGTM 🎉
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.
Thanks! LGTM!
- [Lightning Terminal](#lightning-terminal) | ||
- [Bug Fixes](#bug-fixes) | ||
- [Functional Changes/Additions](#functional-changesadditions) | ||
- [Technical and Architectural Updates](#technical-and-architectural-updates) | ||
- [Integrated Binary Updates](#integrated-binary-updates) | ||
- [LND](#lnd) | ||
- [Loop](#loop) | ||
- [Pool](#pool) | ||
- [Faraday](#faraday) | ||
- [Taproot Assets](#taproot-assets) | ||
- [Contributors](#contributors-alphabetical-order) |
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.
Niiiice 😎!
For the subserver manager: use a map instead of an array for subservers. Check that there is no name collision before adding a new server. This is also nice if we want to get a specific subserver by its name (as is done in Prepare for custom channels (lnd v0.18.4-beta) #848).
for the status manager, first check that we are not overriding an existing subserver before we register a new one