Browse Source

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

zah 7 năm trước cách đây
mục cha
commit
55a4ff806f
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      les/flowcontrol/control.go

+ 0 - 1
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