-
Notifications
You must be signed in to change notification settings - Fork 29
Handle commitment sender disconnect and unify exit code in CertificatePoolService. #319
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
Handle commitment sender disconnect and unify exit code in CertificatePoolService. #319
Conversation
| voting_context, | ||
| )); | ||
| alpenglow_update_commitment_cache( | ||
| let _ = alpenglow_update_commitment_cache( |
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.
whats the purpose of adding an error if we just ignore 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.
This function is called from both EventHandler and CertificatePoolService. This PR only handles the error on the CertificatePoolService side, the EventHandler error handling can be done in a future PR maybe? I suppose EventHandler should also exit on disconnect.
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. Would be good to hook up to EventHandler in the future
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.
Can be done in a future PR, but lets create an error.rs to hold all of these various error types for easier reading.
No description provided.