From 9fa930ed52fc0be30e776cf97e309deb9eb65c34 Mon Sep 17 00:00:00 2001 From: lmuswere Date: Mon, 2 Dec 2019 11:30:54 +0000 Subject: [PATCH] add when function to rateController prompt Signed-off-by: lmuswere --- .../generator-caliper/generators/benchmark/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/caliper-generator/generator-caliper/generators/benchmark/index.js b/packages/caliper-generator/generator-caliper/generators/benchmark/index.js index 473df1830..bf5b9be4c 100644 --- a/packages/caliper-generator/generator-caliper/generators/benchmark/index.js +++ b/packages/caliper-generator/generator-caliper/generators/benchmark/index.js @@ -84,7 +84,8 @@ module.exports = class extends Generator { {name: 'Fixed Backlog', value: 'fixed-backlog'}, {name: 'Linear Rate', value: 'linear-rate'}, {name: 'Fixed Feedback Rate', value: 'fixed-feedback-rate'} - ] + ], + when: () => !this.options.rateController }, { type: 'list', name: 'txType',