diff options
Diffstat (limited to 'les/flowcontrol/manager.go')
-rw-r--r-- | les/flowcontrol/manager.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/les/flowcontrol/manager.go b/les/flowcontrol/manager.go index d3cc57aa6..28cc6f0fe 100644 --- a/les/flowcontrol/manager.go +++ b/les/flowcontrol/manager.go @@ -127,7 +127,7 @@ func (self *ClientManager) removeNode(node *cmNode) { // recalc sumWeight func (self *ClientManager) updateNodes(time mclock.AbsTime) (rce bool) { var sumWeight, rcSum uint64 - for node, _ := range self.nodes { + for node := range self.nodes { rc := node.recharging node.update(time) if rc && !node.recharging { @@ -146,13 +146,13 @@ func (self *ClientManager) updateNodes(time mclock.AbsTime) (rce bool) { func (self *ClientManager) update(time mclock.AbsTime) { for { firstTime := time - for node, _ := range self.nodes { + for node := range self.nodes { if node.recharging && node.finishRecharge < firstTime { firstTime = node.finishRecharge } } if self.updateNodes(firstTime) { - for node, _ := range self.nodes { + for node := range self.nodes { if node.recharging { node.set(node.serving, self.simReqCnt, self.sumWeight) } |