raft: return after handling msgBeat

It makes the workflow more clear.
This commit is contained in:
Yicheng Qin 2014-06-11 09:49:01 -07:00
parent c7e358922b
commit f9c299da8b

View File

@ -254,6 +254,7 @@ func (sm *stateMachine) Step(m Message) {
return
}
sm.bcastAppend()
return
case msgProp:
switch sm.lead {
case sm.addr: