Merge pull request #4297 from ngaut/ngaut/raft-typo

raft: typo
This commit is contained in:
Xiang Li 2016-01-26 20:48:53 -08:00
commit 6054748181

View File

@ -857,7 +857,7 @@ func (r *raft) loadState(state pb.HardState) {
r.Vote = state.Vote
}
// 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 {