mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: make Msgs one line
This commit is contained in:
parent
d12b2c39dd
commit
f8a3ac9338
@ -60,9 +60,7 @@ func (n *Node) Add(id int) { n.updateConf(configAdd, &config{NodeId: id}) }
|
|||||||
|
|
||||||
func (n *Node) Remove(id int) { n.updateConf(configRemove, &config{NodeId: id}) }
|
func (n *Node) Remove(id int) { n.updateConf(configRemove, &config{NodeId: id}) }
|
||||||
|
|
||||||
func (n *Node) Msgs() []Message {
|
func (n *Node) Msgs() []Message { return n.sm.Msgs() }
|
||||||
return n.sm.Msgs()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (n *Node) Step(m Message) {
|
func (n *Node) Step(m Message) {
|
||||||
l := len(n.sm.msgs)
|
l := len(n.sm.msgs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user