raft: return after handling msgBeat

It makes the workflow more clear.
release-2.0
Yicheng Qin 2014-06-11 09:49:01 -07:00
parent c7e358922b
commit f9c299da8b
1 changed files with 1 additions and 0 deletions

View File

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