From 659ef5deba4b16cc0a28a3104fc46ea442a92a3f Mon Sep 17 00:00:00 2001 From: "nkl199@yahoo.co.uk" Date: Tue, 25 Aug 2020 09:18:07 +0100 Subject: [PATCH] remove underscore vars and client refs Signed-off-by: nkl199@yahoo.co.uk --- .../caliper-core/lib/worker/rate-control/fixedFeedbackRate.js | 2 +- packages/caliper-core/lib/worker/rate-control/maxRate.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/caliper-core/lib/worker/rate-control/fixedFeedbackRate.js b/packages/caliper-core/lib/worker/rate-control/fixedFeedbackRate.js index cdc1ac2b7..848beb8fa 100644 --- a/packages/caliper-core/lib/worker/rate-control/fixedFeedbackRate.js +++ b/packages/caliper-core/lib/worker/rate-control/fixedFeedbackRate.js @@ -47,7 +47,7 @@ class FixedFeedbackRateController extends RateInterface { const tpsPerClient = tps / this.numberOfWorkers; this.generalSleepTime = (tpsPerClient > 0) ? 1000 / tpsPerClient : 0; - this.backOffTime = this.options.sleep_time || 100; + this.backOffTime = this.options.sleepTime || 100; const transactionLoad = this.options.transactionLoad ? this.options.transactionLoad : 10; this.unfinishedPerWorker = (transactionLoad / this.numberOfWorkers); diff --git a/packages/caliper-core/lib/worker/rate-control/maxRate.js b/packages/caliper-core/lib/worker/rate-control/maxRate.js index 10f04db2e..db622e389 100644 --- a/packages/caliper-core/lib/worker/rate-control/maxRate.js +++ b/packages/caliper-core/lib/worker/rate-control/maxRate.js @@ -167,7 +167,7 @@ class MaxRate extends RateInterface { } /** - * Apply the client TPS + * Apply the worker TPS */ async applySleepInterval() { const sleepTime = 1000 / this.tpsSettings.current;