les: fix megacheck warnings (#14941)
* les: fix megacheck warnings * les: fixed testGetProofs
This commit is contained in:
committed by
Péter Szilágyi
parent
d375193797
commit
fff6e03a79
@ -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
|
||||
|
Reference in New Issue
Block a user