func (r *raft) tickElection() {
	r.electionElapsed++

	if r.promotable() && r.pastElectionTimeout() {
		r.electionElapsed = 0
		r.Step(pb.Message{From: r.id, Type: pb.MsgHup})
	}
}
func (r *raft) tickElection() {
	r.electionElapsed++

	if r.promotable() && r.pastElectionTimeout() {
		r.electionElapsed = 0
		r.Step(pb.Message{From: r.id, Type: pb.MsgHup})
	}
}
func ( r * raft ) tickElection ( ) { r . electionElapsed ++ if r . promotable ( ) && r . pastElectionTimeout ( ) { r . electionElapsed = 0 r . Step ( pb . Message { From : r . id , Type : pb . MsgHup } ) } }
// tickElection is run by followers and candidates after r.electionTimeout.
tickElection is run by followers and candidates after r . electionTimeout .