From f2a9b6f31cf3f68ac111b7100e067bbd97403fe7 Mon Sep 17 00:00:00 2001 From: Abhinav Pandey Date: Sun, 12 May 2024 02:10:45 +0530 Subject: [PATCH] Update compositeRate.js Signed-off-by: Abhinav Pandey --- .../lib/worker/rate-control/compositeRate.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/caliper-core/lib/worker/rate-control/compositeRate.js b/packages/caliper-core/lib/worker/rate-control/compositeRate.js index c8255df2d..52d739b9d 100644 --- a/packages/caliper-core/lib/worker/rate-control/compositeRate.js +++ b/packages/caliper-core/lib/worker/rate-control/compositeRate.js @@ -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.';