git.delta.rocks / unique-network / refs/commits / 570af721ce82

difftreelog

fix cargo fmt

Daniel Shiposha2022-12-08parent: #1faae1d.patch.diff
in: master

2 files changed

modifiednode/cli/src/command.rsdiffbeforeafterboth
434 #[cfg(feature = "quartz-runtime")]434 #[cfg(feature = "quartz-runtime")]
435 RuntimeId::Quartz => Box::pin(cmd.run::<Block, QuartzRuntimeExecutor>(config)),435 RuntimeId::Quartz => Box::pin(cmd.run::<Block, QuartzRuntimeExecutor>(config)),
436436
437 RuntimeId::Opal => {437 RuntimeId::Opal => Box::pin(cmd.run::<Block, OpalRuntimeExecutor>(config)),
438 Box::pin(cmd.run::<Block, OpalRuntimeExecutor>(config))
439 }
440 RuntimeId::Unknown(chain) => return Err(no_runtime_err!(chain).into()),438 RuntimeId::Unknown(chain) => return Err(no_runtime_err!(chain).into()),
441 },439 },
442 task_manager,440 task_manager,
443 ))441 ))
444 })442 })
445 },443 }
446 #[cfg(not(feature = "try-runtime"))]444 #[cfg(not(feature = "try-runtime"))]
447 Some(Subcommand::TryRuntime) => {445 Some(Subcommand::TryRuntime) => {
448 Err("Try-runtime must be enabled by `--features try-runtime`.".into())446 Err("Try-runtime must be enabled by `--features try-runtime`.".into())
modifiednode/cli/src/service.rsdiffbeforeafterboth
--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -34,7 +34,9 @@
 
 // Cumulus Imports
 use cumulus_client_consensus_aura::{AuraConsensus, BuildAuraConsensusParams, SlotProportion};
-use cumulus_client_consensus_common::{ParachainConsensus, ParachainBlockImport as TParachainBlockImport};
+use cumulus_client_consensus_common::{
+	ParachainConsensus, ParachainBlockImport as TParachainBlockImport,
+};
 use cumulus_client_service::{
 	prepare_node_config, start_collator, start_full_node, StartCollatorParams, StartFullNodeParams,
 };
@@ -188,7 +190,8 @@
 	sc_service::TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>;
 type FullBackend = sc_service::TFullBackend<Block>;
 type FullSelectChain = sc_consensus::LongestChain<FullBackend, Block>;
-type ParachainBlockImport<RuntimeApi, ExecutorDispatch> = TParachainBlockImport<Arc<FullClient<RuntimeApi, ExecutorDispatch>>>;
+type ParachainBlockImport<RuntimeApi, ExecutorDispatch> =
+	TParachainBlockImport<Arc<FullClient<RuntimeApi, ExecutorDispatch>>>;
 
 /// Starts a `ServiceBuilder` for a full service.
 ///
@@ -333,11 +336,9 @@
 	Option<CollatorPair>,
 )> {
 	match collator_options.relay_chain_rpc_url {
-		Some(relay_chain_url) => build_minimal_relay_chain_node(
-			polkadot_config,
-			task_manager,
-			relay_chain_url,
-		).await,
+		Some(relay_chain_url) => {
+			build_minimal_relay_chain_node(polkadot_config, task_manager, relay_chain_url).await
+		}
 		None => build_inprocess_relay_chain(
 			polkadot_config,
 			parachain_config,