Преглед изворни кода

raft: prop msg type should be MsgProp

Xiang Li пре 11 година
родитељ
комит
5b052e1e10
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      raft/node.go

+ 1 - 1
raft/node.go

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