Skip to content

Commit

Permalink
Update LICENSE
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 060aebe commit a08baf0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/caliper-core/lib/worker/rate-control/compositeRate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -74,8 +73,14 @@ class CompositeRateController extends RateInterface{
* @private
*/
_prepareControllers() {
let weights = this.options.weights;
let rateControllers = this.options.rateControllers;
// 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;

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

0 comments on commit a08baf0

Please sign in to comment.