Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix parallel node
  • Loading branch information
mclyk committed Nov 25, 2022
commit dfb612ba433965447aecb599533e85f4f5e21058
6 changes: 6 additions & 0 deletions node/parallel/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,12 @@ pub fn run() -> Result<()> {
crate::service::new_partial::<RuntimeApi, Executor>(&config)?;
cmd.run(partials.client)
}),
#[cfg(not(feature = "runtime-benchmarks"))]
BenchmarkCmd::Storage(_) => Err(
"Storage benchmarking can be enabled with `--features runtime-benchmarks`."
.into(),
),
#[cfg(feature = "runtime-benchmarks")]
BenchmarkCmd::Storage(cmd) => runner.sync_run(|config| {
let partials =
crate::service::new_partial::<RuntimeApi, Executor>(&config)?;
Expand Down
3 changes: 1 addition & 2 deletions node/parallel/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use cumulus_client_service::{
};

use polkadot_service::{CollatorPair, ConstructRuntimeApi};
use sc_client_api::call_executor::ExecutorProvider;
use sc_executor::NativeElseWasmExecutor;
use sc_network_common::service::NetworkBlock;
use sc_service::{Configuration, PartialComponents, TaskManager};
Expand Down Expand Up @@ -189,7 +188,7 @@ where
slot_duration,
);

Ok((time, slot))
Ok((slot, time))
},
registry: config.prometheus_registry(),
spawner: &task_manager.spawn_essential_handle(),
Expand Down