From 701df09971781179918a05db0e14dd5b9d1eabc0 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Mon, 19 Mar 2018 08:22:45 +0300 Subject: [PATCH] do not use keywords Refs #1317 --- blockchain/reactor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blockchain/reactor.go b/blockchain/reactor.go index 2b334c232..3c25eed2f 100644 --- a/blockchain/reactor.go +++ b/blockchain/reactor.go @@ -76,9 +76,9 @@ func NewBlockchainReactor(state sm.State, blockExec *sm.BlockExecutor, store *Bl store.Height())) } - const cap = 1000 // must be bigger than peers count - requestsCh := make(chan BlockRequest, cap) - errorsCh := make(chan peerError, cap) // so we don't block in #Receive#pool.AddBlock + const capacity = 1000 // must be bigger than peers count + requestsCh := make(chan BlockRequest, capacity) + errorsCh := make(chan peerError, capacity) // so we don't block in #Receive#pool.AddBlock pool := NewBlockPool( store.Height()+1,