Skip to content

Commit

Permalink
Update compositeRate.js
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinav Pandey <[email protected]>
  • Loading branch information
Sweetdevil144 committed May 11, 2024
1 parent 6400db8 commit f2a9b6f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/caliper-core/lib/worker/rate-control/compositeRate.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,8 @@ class CompositeRateController extends RateInterface{
* @private
*/
_prepareControllers() {
// console.log('Options: ', this.options);
// console.log('testMessage: ', this.testMessage);
let weights = this.testMessage.content.weights;
let rateControllers = this.testMessage.content.rateControllers;
// console.log('weights:', weights);
// console.log('rateControllers:', rateControllers);
// let weights = this.options.weights;
// let rateControllers = this.options.rateControllers;
let weights = this.options.weights;
let rateControllers = this.options.rateControllers;

if (!Array.isArray(weights) || !Array.isArray(rateControllers)) {
let msg = 'Weight and controller definitions must be arrays.';
Expand Down

0 comments on commit f2a9b6f

Please sign in to comment.