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
Initial backends dead #253
Conversation
Some questions:
|
These are two separate things.
Onto the panic. After I submitted this PR I saw that you had a contributors guidlines and that panic is frowned up. I was going to state that hey I was following pattern at location X, when I read the message it stated that manager first checked the result. As such I have added another commit which first validates the change in manager. see commit KnicKnic@470b0cf |
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.
- If there are only 2 options: live or dead, why use additional type for that, instead of simple bool?
- Please make a separate PR with typos fixed in comments of gobetween.toml, if you want. These changes are not related to the original PR
"CheckResultLiveness Originally this was just live. Live denoted if the backend was live or not. If we transition from live to failed, or failed to live; we would signal that the backend changed state. However I needed a new state that was neither live or failed. A state that could transition to either live or failed, and guarantees to signal regardless of what state it started in. This is why an enum with three states was introduced. Initial, live or failed."
Done! |
Merged |
Idea was that when backends are initially added they should be dead if Healthchecking is occurs.
This PR builds upon #252 and completes #251