Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekkMA committed Oct 28, 2024
1 parent 4689446 commit b288ee9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 1 addition & 4 deletions template/node/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())?;
Expand Down
8 changes: 6 additions & 2 deletions template/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(&parachain_config.network, prometheus_registry.clone());
let net_config = FullNetworkConfiguration::<_, _, N>::new(
&parachain_config.network,
prometheus_registry.clone(),
);

let metrics = N::register_notification_metrics(
parachain_config
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit b288ee9

Please sign in to comment.