raft: remove duplicate letter in comment.

Signed-off-by: Wang Xiaoxiao 1141195807@qq.com
Signed-off-by: 王霄霄 <1141195807@qq.com>
dependabot/go_modules/go.uber.org/atomic-1.10.0
王霄霄 2022-10-22 15:22:16 +08:00
parent 3b4c255444
commit aac5feec94
1 changed files with 1 additions and 1 deletions

View File

@ -1725,7 +1725,7 @@ func (r *raft) loadState(state pb.HardState) {
r.Vote = state.Vote
}
// pastElectionTimeout returns true iff r.electionElapsed is greater
// pastElectionTimeout returns true if r.electionElapsed is greater
// than or equal to the randomized election timeout in
// [electiontimeout, 2 * electiontimeout - 1].
func (r *raft) pastElectionTimeout() bool {