Explorar el Código

raft: return after handling msgBeat

It makes the workflow more clear.
Yicheng Qin hace 11 años
padre
commit
f9c299da8b
Se han modificado 1 ficheros con 1 adiciones y 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: