Skip to content

Commit

Permalink
remove underscore vars and client refs
Browse files Browse the repository at this point in the history
  • Loading branch information
nklincoln committed Aug 25, 2020
1 parent c529ade commit 659ef5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/caliper-core/lib/worker/rate-control/maxRate.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class MaxRate extends RateInterface {
}

/**
* Apply the client TPS
* Apply the worker TPS
*/
async applySleepInterval() {
const sleepTime = 1000 / this.tpsSettings.current;
Expand Down

0 comments on commit 659ef5d

Please sign in to comment.