aboutsummaryrefslogtreecommitdiffstats
path: root/les
diff options
context:
space:
mode:
authorzah <zahary@gmail.com>2018-11-29 17:57:00 +0800
committerMartin Holst Swende <martin@swende.se>2018-11-29 17:56:59 +0800
commit55a4ff806fc1c8018055c56abcc6857502447902 (patch)
tree55c42663ad741780fc0ac54584467091d24ceb29 /les
parent7c657fc78957d7ed302eba68bb6122b515364ac4 (diff)
downloaddexon-55a4ff806fc1c8018055c56abcc6857502447902.tar
dexon-55a4ff806fc1c8018055c56abcc6857502447902.tar.gz
dexon-55a4ff806fc1c8018055c56abcc6857502447902.tar.bz2
dexon-55a4ff806fc1c8018055c56abcc6857502447902.tar.lz
dexon-55a4ff806fc1c8018055c56abcc6857502447902.tar.xz
dexon-55a4ff806fc1c8018055c56abcc6857502447902.tar.zst
dexon-55a4ff806fc1c8018055c56abcc6857502447902.zip
remove a no-op line in the code (#17760)
Diffstat (limited to 'les')
-rw-r--r--les/flowcontrol/control.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/les/flowcontrol/control.go b/les/flowcontrol/control.go
index d50eb809c..8ef4ba511 100644
--- a/les/flowcontrol/control.go
+++ b/les/flowcontrol/control.go
@@ -82,7 +82,6 @@ func (peer *ClientNode) RequestProcessed(cost uint64) (bv, realCost uint64) {
time := mclock.Now()
peer.recalcBV(time)
peer.bufValue -= cost
- peer.recalcBV(time)
rcValue, rcost := peer.cm.processed(peer.cmNode, time)
if rcValue < peer.params.BufLimit {
bv := peer.params.BufLimit - rcValue