From a8aeb1a4e45559fffaf61a90d5b0155072ca2d10 Mon Sep 17 00:00:00 2001 From: Dmitry Lavrenov Date: Mon, 13 Mar 2023 14:45:49 +0300 Subject: [PATCH] Box large enum BenchmarkCmd --- crates/humanode-peer/src/cli/run.rs | 1 + crates/humanode-peer/src/cli/subcommand/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/humanode-peer/src/cli/run.rs b/crates/humanode-peer/src/cli/run.rs index df9b8fff4..fdf74501c 100644 --- a/crates/humanode-peer/src/cli/run.rs +++ b/crates/humanode-peer/src/cli/run.rs @@ -135,6 +135,7 @@ pub async fn run() -> sc_cli::Result<()> { } Some(Subcommand::Ethereum(cmd)) => cmd.run().await, Some(Subcommand::Benchmark(cmd)) => { + let cmd = &**cmd; let runner = root.create_humanode_runner(cmd)?; runner.sync_run(|config| { diff --git a/crates/humanode-peer/src/cli/subcommand/mod.rs b/crates/humanode-peer/src/cli/subcommand/mod.rs index 620ed30d7..1ea3611df 100644 --- a/crates/humanode-peer/src/cli/subcommand/mod.rs +++ b/crates/humanode-peer/src/cli/subcommand/mod.rs @@ -47,7 +47,7 @@ pub enum Subcommand { /// The custom benchmark subcommmand benchmarking runtime pallets. #[command(name = "benchmark", about = "Benchmark runtime pallets.")] #[command(subcommand)] - Benchmark(frame_benchmarking_cli::BenchmarkCmd), + Benchmark(Box), /// Db meta columns information. FrontierDb(fc_cli::FrontierDbCmd),