raft: prop msg type should be MsgProp

This commit is contained in:
Xiang Li 2014-05-21 14:25:49 -07:00 committed by Yicheng Qin
parent ab79550693
commit 5b052e1e10

View File

@ -20,7 +20,7 @@ func New(k, addr int, next Interface) *Node {
// Propose asynchronously proposes data be applied to the underlying state machine.
func (n *Node) Propose(data []byte) {
m := Message{Type: msgHup, Data: data}
m := Message{Type: msgProp, Data: data}
n.Step(m)
}