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
parent
3b4c255444
commit
aac5feec94
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue