From f30a9752e23d15343d588bd23d1af6a3324f72b2 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Fri, 23 Dec 2016 11:11:22 -0500 Subject: [PATCH] more fixes from review --- consensus/reactor.go | 2 +- consensus/state.go | 3 +-- consensus/ticker.go | 4 ++++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/consensus/reactor.go b/consensus/reactor.go index 6b013a0c..7208f397 100644 --- a/consensus/reactor.go +++ b/consensus/reactor.go @@ -672,7 +672,7 @@ OUTER_LOOP: func (conR *ConsensusReactor) String() string { // better not to access shared variables - return Fmt("ConsensusReactor") // conR.StringIndented("") + return "ConsensusReactor" // conR.StringIndented("") } func (conR *ConsensusReactor) StringIndented(indent string) string { diff --git a/consensus/state.go b/consensus/state.go index 31a2e2c9..7b08fada 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -189,8 +189,7 @@ func (rs *RoundState) StringShort() string { //----------------------------------------------------------------------------- var ( - msgQueueSize = 1000 - tickTockBufferSize = 10 + msgQueueSize = 1000 ) // msgs from the reactor which may update the state diff --git a/consensus/ticker.go b/consensus/ticker.go index e4f389fa..1550ca16 100644 --- a/consensus/ticker.go +++ b/consensus/ticker.go @@ -6,6 +6,10 @@ import ( . "github.com/tendermint/go-common" ) +var ( + tickTockBufferSize = 10 +) + type TimeoutTicker interface { Start() (bool, error) Stop() bool