Browse Source

raft: return after handling msgBeat

It makes the workflow more clear.
Yicheng Qin 11 years ago
parent
commit
f9c299da8b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      raft/raft.go

+ 1 - 0
raft/raft.go

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