We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently promote_leader can panic on a failure case.
promote_leader
https://github.com/pingcap/raft-rs/blob/1e0741a9aea3b242d33dadc46245ad611e7e7aa4/src/progress.rs#L129-L136
This issue would be solved if promote_leader() instead returned a value such as Result<()> so the calling code can handle the situation.
promote_leader()
Result<()>
The text was updated successfully, but these errors were encountered:
This is resolved in #102
Sorry, something went wrong.
No branches or pull requests
Currently
promote_leader
can panic on a failure case.https://github.com/pingcap/raft-rs/blob/1e0741a9aea3b242d33dadc46245ad611e7e7aa4/src/progress.rs#L129-L136
This issue would be solved if
promote_leader()
instead returned a value such asResult<()>
so the calling code can handle the situation.The text was updated successfully, but these errors were encountered: