فهرست منبع

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: