diff --git a/raft/node.go b/raft/node.go index f231e6e1c..53857d7ca 100644 --- a/raft/node.go +++ b/raft/node.go @@ -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) Msgs() []Message { - return n.sm.Msgs() -} +func (n *Node) Msgs() []Message { return n.sm.Msgs() } func (n *Node) Step(m Message) { l := len(n.sm.msgs)