raft: do bcast when receiving msgBeat

This commit is contained in:
Xiang Li 2014-06-02 10:37:32 -07:00 committed by Yicheng Qin
parent 09d1575eeb
commit 6fa74b0e33

View File

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