-
Notifications
You must be signed in to change notification settings - Fork 409
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
Some additional documentation. #106
Conversation
5ad2a2f
to
13107cf
Compare
src/raft.rs
Outdated
@@ -828,19 +839,22 @@ impl<T: Storage> Raft<T> { | |||
self.set_prs(prs); | |||
} | |||
|
|||
fn poll(&mut self, id: u64, t: MessageType, v: bool) -> usize { | |||
if v { | |||
/// Set the vote of `id` to `vote`. |
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.
sets
returns
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.
Ah, my English is so bad. 🤣 I am glad to have an expert to correct me. 🙇♀️
797f939
to
cde9e58
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.
LGTM!
Just some small documentation refinements.