mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: leader should tick heartbeat
This commit is contained in:
parent
efe2141c16
commit
8f4c615704
@ -302,7 +302,7 @@ func (r *raft) becomeLeader() {
|
||||
}
|
||||
r.step = stepLeader
|
||||
r.reset(r.Term)
|
||||
r.tick = r.tickElection
|
||||
r.tick = r.tickHeartbeat
|
||||
r.lead = r.id
|
||||
r.state = stateLeader
|
||||
r.appendEntry(pb.Entry{Data: nil})
|
||||
|
Loading…
x
Reference in New Issue
Block a user