mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: return after handling msgBeat
It makes the workflow more clear.
This commit is contained in:
parent
c7e358922b
commit
f9c299da8b
@ -254,6 +254,7 @@ func (sm *stateMachine) Step(m Message) {
|
||||
return
|
||||
}
|
||||
sm.bcastAppend()
|
||||
return
|
||||
case msgProp:
|
||||
switch sm.lead {
|
||||
case sm.addr:
|
||||
|
Loading…
x
Reference in New Issue
Block a user