aboutsummaryrefslogtreecommitdiffstats
path: root/les/flowcontrol
diff options
context:
space:
mode:
Diffstat (limited to 'les/flowcontrol')
-rw-r--r--les/flowcontrol/control.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/les/flowcontrol/control.go b/les/flowcontrol/control.go
index e40e69346..d50eb809c 100644
--- a/les/flowcontrol/control.go
+++ b/les/flowcontrol/control.go
@@ -157,9 +157,7 @@ func (peer *ServerNode) QueueRequest(reqID, maxCost uint64) {
peer.bufEstimate -= maxCost
peer.sumCost += maxCost
- if reqID >= 0 {
- peer.pending[reqID] = peer.sumCost
- }
+ peer.pending[reqID] = peer.sumCost
}
// GotReply adjusts estimated buffer value according to the value included in