mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: typo
This commit is contained in:
parent
8199147cf8
commit
751ab40f44
@ -851,7 +851,7 @@ func (r *raft) loadState(state pb.HardState) {
|
||||
r.Commit = state.Commit
|
||||
}
|
||||
|
||||
// isElectionTimeout returns true if r.elapsed is greater than the
|
||||
// isElectionTimeout returns true if r.electionElapsed is greater than the
|
||||
// randomized election timeout in (electiontimeout, 2 * electiontimeout - 1).
|
||||
// Otherwise, it returns false.
|
||||
func (r *raft) isElectionTimeout() bool {
|
||||
|
Loading…
x
Reference in New Issue
Block a user