remove curRate != 0

This commit is contained in:
Anton Kaliaev 2018-02-07 21:22:24 +04:00
parent b0a55882b2
commit c8990d06d9
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ func (pool *BlockPool) removeTimedoutPeers() {
if !peer.didTimeout && peer.numPending > 0 { if !peer.didTimeout && peer.numPending > 0 {
curRate := peer.recvMonitor.Status().CurRate curRate := peer.recvMonitor.Status().CurRate
// XXX remove curRate != 0 // XXX remove curRate != 0
if curRate != 0 && curRate < minRecvRate { if curRate < minRecvRate {
pool.sendTimeout(peer.id) pool.sendTimeout(peer.id)
pool.Logger.Error("SendTimeout", "peer", peer.id, pool.Logger.Error("SendTimeout", "peer", peer.id,
"reason", "peer is not sending us data fast enough", "reason", "peer is not sending us data fast enough",