Browse Source

raft: do bcast when receiving msgBeat

Xiang Li 11 years ago
parent
commit
6fa74b0e33
1 changed files with 1 additions and 3 deletions
  1. 1 3
      raft/raft.go

+ 1 - 3
raft/raft.go

@@ -253,9 +253,7 @@ func (sm *stateMachine) Step(m Message) {
 		if sm.state != stateLeader {
 			return
 		}
-		// todo(xiangli) broadcast append
-		// blocker github issue #13
-		sm.sendAppend()
+		sm.bcastAppend()
 	case msgProp:
 		switch sm.lead {
 		case sm.addr: