Browse Source

raft: blake is OCD

Blake Mizerany 11 years ago
parent
commit
d12b2c39dd
1 changed files with 1 additions and 2 deletions
  1. 1 2
      raft/node.go

+ 1 - 2
raft/node.go

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