remove curRate != 0
This commit is contained in:
parent
b0a55882b2
commit
c8990d06d9
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue