mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: prop msg type should be MsgProp
This commit is contained in:
parent
ab79550693
commit
5b052e1e10
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user