From c8990d06d940e774912ea0038600fff145ae8809 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 7 Feb 2018 21:22:24 +0400 Subject: [PATCH] remove curRate != 0 --- blockchain/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockchain/pool.go b/blockchain/pool.go index 95956757c..110c5735c 100644 --- a/blockchain/pool.go +++ b/blockchain/pool.go @@ -127,7 +127,7 @@ func (pool *BlockPool) removeTimedoutPeers() { if !peer.didTimeout && peer.numPending > 0 { curRate := peer.recvMonitor.Status().CurRate // XXX remove curRate != 0 - if curRate != 0 && curRate < minRecvRate { + if curRate < minRecvRate { pool.sendTimeout(peer.id) pool.Logger.Error("SendTimeout", "peer", peer.id, "reason", "peer is not sending us data fast enough",