Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzamontiel committed Oct 1, 2024
1 parent fa1324d commit 8111ba7
Showing 1 changed file with 50 additions and 49 deletions.
99 changes: 50 additions & 49 deletions node/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ pub fn run() -> Result<()> {
let relay_chain_id = extension.map(|e| e.relay_chain.as_str());
let para_id = extension.map(|e| e.para_id);

let dev_service = cli.run.dev_service
let dev_service = cli.run.dev_service
|| config.chain_spec.is_dev()
|| relay_chain_id == Some("dev-service");
if dev_service {
Expand All @@ -718,56 +718,57 @@ pub fn run() -> Result<()> {
"Alice",
));

return match &config.chain_spec {
#[cfg(feature = "moonriver-native")]
spec if spec.is_moonriver() => moonbeam_service::new_dev::<
moonbeam_service::moonriver_runtime::RuntimeApi,
moonbeam_service::MoonriverCustomizations,
sc_network::NetworkWorker<_, _>,
>(
config,
para_id,
author_id,
cli.run.sealing,
rpc_config,
hwbench,
return match &config.chain_spec {
#[cfg(feature = "moonriver-native")]
spec if spec.is_moonriver() => moonbeam_service::new_dev::<
moonbeam_service::moonriver_runtime::RuntimeApi,
moonbeam_service::MoonriverCustomizations,
sc_network::NetworkWorker<_, _>,
>(
config,
para_id,
author_id,
cli.run.sealing,
rpc_config,
hwbench,
)
.await
.map_err(Into::into),
#[cfg(feature = "moonbeam-native")]
spec if spec.is_moonbeam() => moonbeam_service::new_dev::<
moonbeam_service::moonbeam_runtime::RuntimeApi,
moonbeam_service::MoonbeamCustomizations,
sc_network::NetworkWorker<_, _>,
>(
config,
para_id,
author_id,
cli.run.sealing,
rpc_config,
hwbench,
.await
.map_err(Into::into),
#[cfg(feature = "moonbeam-native")]
spec if spec.is_moonbeam() => moonbeam_service::new_dev::<
moonbeam_service::moonbeam_runtime::RuntimeApi,
moonbeam_service::MoonbeamCustomizations,
sc_network::NetworkWorker<_, _>,
>(
config,
para_id,
author_id,
cli.run.sealing,
rpc_config,
hwbench,
)
.await
.map_err(Into::into),
#[cfg(feature = "moonbase-native")]
_ => moonbeam_service::new_dev::<
moonbeam_service::moonbase_runtime::RuntimeApi,
moonbeam_service::MoonbaseCustomizations,
sc_network::NetworkWorker<_, _>,
>(
config,
para_id,
author_id,
cli.run.sealing,
rpc_config,
hwbench,
)
.await
.map_err(Into::into),
#[cfg(not(feature = "moonbase-native"))]
_ => panic!("invalid chain spec"),
};
}#[cfg(feature = "lazy-loading")]
.await
.map_err(Into::into),
#[cfg(feature = "moonbase-native")]
_ => moonbeam_service::new_dev::<
moonbeam_service::moonbase_runtime::RuntimeApi,
moonbeam_service::MoonbaseCustomizations,
sc_network::NetworkWorker<_, _>,
>(
config,
para_id,
author_id,
cli.run.sealing,
rpc_config,
hwbench,
)
.await
.map_err(Into::into),
#[cfg(not(feature = "moonbase-native"))]
_ => panic!("invalid chain spec"),
};
}
#[cfg(feature = "lazy-loading")]
if let Some(fork_chain_from_rpc) = cli.run.fork_chain_from_rpc {
let author_id = Some(chain_spec::get_from_seed::<nimbus_primitives::NimbusId>(
"Alice",
Expand Down

0 comments on commit 8111ba7

Please sign in to comment.