remove a no-op line in the code (#17760)

This commit is contained in:
zah 2018-11-29 11:57:00 +02:00 committed by Martin Holst Swende
parent 7c657fc789
commit 55a4ff806f

View File

@ -82,7 +82,6 @@ func (peer *ClientNode) RequestProcessed(cost uint64) (bv, realCost uint64) {
time := mclock.Now() time := mclock.Now()
peer.recalcBV(time) peer.recalcBV(time)
peer.bufValue -= cost peer.bufValue -= cost
peer.recalcBV(time)
rcValue, rcost := peer.cm.processed(peer.cmNode, time) rcValue, rcost := peer.cm.processed(peer.cmNode, time)
if rcValue < peer.params.BufLimit { if rcValue < peer.params.BufLimit {
bv := peer.params.BufLimit - rcValue bv := peer.params.BufLimit - rcValue