From b288ee90b677d7f3773cb542799b09618096addb Mon Sep 17 00:00:00 2001 From: Tarek Mohamed Abdalla Date: Mon, 28 Oct 2024 11:09:46 +0000 Subject: [PATCH] formatting --- template/node/src/rpc.rs | 5 +---- template/node/src/service.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/template/node/src/rpc.rs b/template/node/src/rpc.rs index fd53b0ff..c3a213fb 100644 --- a/template/node/src/rpc.rs +++ b/template/node/src/rpc.rs @@ -47,10 +47,7 @@ where use substrate_frame_rpc_system::{System, SystemApiServer}; let mut module = RpcExtension::new(()); - let FullDeps { - client, - pool, - } = deps; + let FullDeps { client, pool } = deps; module.merge(System::new(client.clone(), pool).into_rpc())?; module.merge(TransactionPayment::new(client).into_rpc())?; diff --git a/template/node/src/service.rs b/template/node/src/service.rs index 40f98d5c..0c43ec5f 100644 --- a/template/node/src/service.rs +++ b/template/node/src/service.rs @@ -241,7 +241,10 @@ where let transaction_pool = params.transaction_pool.clone(); let import_queue_service = params.import_queue.service(); - let net_config = FullNetworkConfiguration::<_, _, N>::new(¶chain_config.network, prometheus_registry.clone()); + let net_config = FullNetworkConfiguration::<_, _, N>::new( + ¶chain_config.network, + prometheus_registry.clone(), + ); let metrics = N::register_notification_metrics( parachain_config @@ -443,7 +446,8 @@ where } = new_partial(&config, false)?; let prometheus_registry = config.prometheus_registry().cloned(); - let net_config = FullNetworkConfiguration::<_, _, N>::new(&config.network, prometheus_registry.clone()); + let net_config = + FullNetworkConfiguration::<_, _, N>::new(&config.network, prometheus_registry.clone()); let metrics = N::register_notification_metrics( config.prometheus_config.as_ref().map(|cfg| &cfg.registry),