aboutsummaryrefslogtreecommitdiffstats
path: root/les/distributor_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'les/distributor_test.go')
-rw-r--r--les/distributor_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/les/distributor_test.go b/les/distributor_test.go
index 55defb69b..2891bcab4 100644
--- a/les/distributor_test.go
+++ b/les/distributor_test.go
@@ -97,9 +97,8 @@ func (p *testDistPeer) waitBefore(cost uint64) (time.Duration, float64) {
p.lock.RUnlock()
if sumCost < testDistBufLimit {
return 0, float64(testDistBufLimit-sumCost) / float64(testDistBufLimit)
- } else {
- return time.Duration(sumCost - testDistBufLimit), 0
}
+ return time.Duration(sumCost - testDistBufLimit), 0
}
func (p *testDistPeer) canQueue() bool {