From a4e7ddd137b05237ff06d114e80320963338e916 Mon Sep 17 00:00:00 2001 From: Guantong <04637@163.com> Date: Wed, 21 Sep 2022 14:25:36 +0800 Subject: [PATCH] Companion for paritytech/cumulus#1350 --- src/command.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/command.rs b/src/command.rs index d0b852df..12251969 100644 --- a/src/command.rs +++ b/src/command.rs @@ -405,9 +405,12 @@ pub fn run() -> Result<()> { cmd.run(config, partials.client.clone(), db, storage) }) }), - BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()), BenchmarkCmd::Machine(cmd) => runner.sync_run(|config| cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone())), + // NOTE: this allows the Client to leniently implement + // new benchmark commands without requiring a companion MR. + #[allow(unreachable_patterns)] + _ => Err("Benchmarking sub-command unsupported".into()), } }, #[cfg(feature = "try-runtime")]