mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: blake is OCD
This commit is contained in:
committed by
Yicheng Qin
parent
78bbb37018
commit
d12b2c39dd
@@ -53,8 +53,7 @@ func (n *Node) Id() int { return n.sm.id }
|
||||
func (n *Node) Propose(data []byte) { n.propose(normal, data) }
|
||||
|
||||
func (n *Node) propose(t int, data []byte) {
|
||||
m := Message{Type: msgProp, Entries: []Entry{{Type: t, Data: data}}}
|
||||
n.Step(m)
|
||||
n.Step(Message{Type: msgProp, Entries: []Entry{{Type: t, Data: data}}})
|
||||
}
|
||||
|
||||
func (n *Node) Add(id int) { n.updateConf(configAdd, &config{NodeId: id}) }
|
||||
|
||||
Reference in New Issue
Block a user