raft: make Msgs one line

This commit is contained in:
Blake Mizerany 2014-06-13 15:03:30 -07:00 committed by Yicheng Qin
parent d12b2c39dd
commit f8a3ac9338

View File

@ -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)