Explorar o código

raft: return after handling msgBeat

It makes the workflow more clear.
Yicheng Qin %!s(int64=11) %!d(string=hai) anos
pai
achega
f9c299da8b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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: