Browse Source

raft: prop msg type should be MsgProp

Xiang Li 11 years ago
parent
commit
5b052e1e10
1 changed files with 1 additions and 1 deletions
  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.
 func (n *Node) Propose(data []byte) {
-	m := Message{Type: msgHup, Data: data}
+	m := Message{Type: msgProp, Data: data}
 	n.Step(m)
 }