From 431ff3cce1c017ec19b14cd53edf509daa3b11c7 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Thu, 31 Jul 2014 16:52:21 -0700 Subject: [PATCH] raft: minor change on code --- raft/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raft/node.go b/raft/node.go index c1c7681c8..6821d0dd0 100644 --- a/raft/node.go +++ b/raft/node.go @@ -195,7 +195,7 @@ func (n *Node) Next() []Entry { // If the current elapsed is greater or equal than the timeout, // node will send corresponding message to the statemachine. func (n *Node) Tick() { - if n.sm.promotable == false { + if !n.sm.promotable { return }