Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
gztensor committed Aug 29, 2024
1 parent fa7d30f commit 069bea4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,13 @@ pub fn run() -> sc_cli::Result<()> {

runner.sync_run(|config| {
let sc_service::PartialComponents {
client,
backend,
..
} = crate::service::new_partial(&config, &cli.eth, crate::service::build_manual_seal_import_queue)?;

client, backend, ..
} = crate::service::new_partial(
&config,
&cli.eth,
crate::service::build_manual_seal_import_queue,
)?;

// This switch needs to be in the client, since the client decides
// which sub-commands it wants to support.
match cmd {
Expand All @@ -187,9 +189,7 @@ pub fn run() -> sc_cli::Result<()> {
config.chain_spec,
))
}
BenchmarkCmd::Block(cmd) => {
cmd.run(client)
}
BenchmarkCmd::Block(cmd) => cmd.run(client),
#[cfg(not(feature = "runtime-benchmarks"))]
BenchmarkCmd::Storage(_) => Err(
"Storage benchmarking can be enabled with `--features runtime-benchmarks`."
Expand Down

0 comments on commit 069bea4

Please sign in to comment.