ソースを参照

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: