mirror of
https://github.com/talent-plan/tinykv.git
synced 2024-12-25 20:30:30 +08:00
Modify comments of electionElapsed
(#228)
This commit is contained in:
parent
9c3a38a059
commit
d70b4d2560
@ -138,7 +138,9 @@ type Raft struct {
|
||||
// number of ticks since it reached last heartbeatTimeout.
|
||||
// only leader keeps heartbeatElapsed.
|
||||
heartbeatElapsed int
|
||||
// number of ticks since it reached last electionTimeout
|
||||
// Ticks since it reached last electionTimeout when it is leader or candidate.
|
||||
// Number of ticks since it reached last electionTimeout or received a
|
||||
// valid message from current leader when it is a follower.
|
||||
electionElapsed int
|
||||
|
||||
// leadTransferee is id of the leader transfer target when its value is not zero.
|
||||
|
Loading…
Reference in New Issue
Block a user