From fff6e03a792b0e0a84943e2c3764c39b2840458a Mon Sep 17 00:00:00 2001 From: Felföldi Zsolt Date: Tue, 8 Aug 2017 17:31:08 +0100 Subject: les: fix megacheck warnings (#14941) * les: fix megacheck warnings * les: fixed testGetProofs --- les/flowcontrol/control.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'les/flowcontrol') 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 -- cgit