-
Notifications
You must be signed in to change notification settings - Fork 57
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
fix(rln-relay): graceful shutdown with non-zero exit code #2429
Conversation
This PR may contain changes to database schema of one of the drivers. If you are introducing any changes to the schema, make sure the upgrade from the latest release to this change passes without any errors/issues. Please make sure the label |
You can find the image built from this PR at
Built from 0593aac |
c1ca0f4
to
2c176d7
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 🔥 🔥 🔥
Thanks so much!
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.
Awesome! Thanks for it! 💯
Just added minor comments
waku/waku_rln_relay/rln_relay.nim
Outdated
rlnRelayCredPath*: string | ||
rlnRelayCredPassword*: string | ||
rlnRelayTreePath*: string | ||
# defined in waku_archive, but do not want to import it here |
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.
Sorry I can't quite understand 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.
addressed in efd1b01
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
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.
Great stuff! LGTM.
Description
This PR follows the pattern set by the waku_archive protocol, which propagates fatal error handling to appropriate protocols, without which the node goes into UB.
Changes
error_handling
inwaku_common
, which is imported bywaku_archive
andwaku_rln_relay
, exporting a typeOnFatalErrorHandler
onFatalErrorAction
towaku_rln_relay
How to test