Skip to content

Commit

Permalink
Box large enum BenchmarkCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylavrenov committed Mar 13, 2023
1 parent cab1454 commit a8aeb1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/humanode-peer/src/cli/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down
2 changes: 1 addition & 1 deletion crates/humanode-peer/src/cli/subcommand/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<frame_benchmarking_cli::BenchmarkCmd>),

/// Db meta columns information.
FrontierDb(fc_cli::FrontierDbCmd),
Expand Down

0 comments on commit a8aeb1a

Please sign in to comment.