瀏覽代碼

raft: return after handling msgBeat

It makes the workflow more clear.
Yicheng Qin 11 年之前
父節點
當前提交
f9c299da8b
共有 1 個文件被更改,包括 1 次插入0 次删除
  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: