Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 51c626c

Browse files
committed
cargo fmt
1 parent 0738929 commit 51c626c

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

node/service/src/lib.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -713,9 +713,9 @@ where
713713
let backoff_authoring_blocks = {
714714
let mut backoff = sc_consensus_slots::BackoffAuthoringOnFinalizedHeadLagging::default();
715715

716-
if config.chain_spec.is_rococo()
717-
|| config.chain_spec.is_wococo()
718-
|| config.chain_spec.is_versi()
716+
if config.chain_spec.is_rococo() ||
717+
config.chain_spec.is_wococo() ||
718+
config.chain_spec.is_versi()
719719
{
720720
// it's a testnet that's in flux, finality has stalled sometimes due
721721
// to operational issues and it's annoying to slow down block
@@ -727,10 +727,10 @@ where
727727
};
728728

729729
// If not on a known test network, warn the user that BEEFY is still experimental.
730-
if enable_beefy
731-
&& !config.chain_spec.is_rococo()
732-
&& !config.chain_spec.is_wococo()
733-
&& !config.chain_spec.is_versi()
730+
if enable_beefy &&
731+
!config.chain_spec.is_rococo() &&
732+
!config.chain_spec.is_wococo() &&
733+
!config.chain_spec.is_versi()
734734
{
735735
gum::warn!("BEEFY is still experimental, usage on a production network is discouraged.");
736736
}
@@ -1312,26 +1312,26 @@ pub fn new_chain_ops(
13121312
config.keystore = service::config::KeystoreConfig::InMemory;
13131313

13141314
#[cfg(feature = "rococo-native")]
1315-
if config.chain_spec.is_rococo()
1316-
|| config.chain_spec.is_wococo()
1317-
|| config.chain_spec.is_versi()
1315+
if config.chain_spec.is_rococo() ||
1316+
config.chain_spec.is_wococo() ||
1317+
config.chain_spec.is_versi()
13181318
{
1319-
return chain_ops!(config, jaeger_agent, None; rococo_runtime, RococoExecutorDispatch, Rococo);
1319+
return chain_ops!(config, jaeger_agent, None; rococo_runtime, RococoExecutorDispatch, Rococo)
13201320
}
13211321

13221322
#[cfg(feature = "kusama-native")]
13231323
if config.chain_spec.is_kusama() {
1324-
return chain_ops!(config, jaeger_agent, None; kusama_runtime, KusamaExecutorDispatch, Kusama);
1324+
return chain_ops!(config, jaeger_agent, None; kusama_runtime, KusamaExecutorDispatch, Kusama)
13251325
}
13261326

13271327
#[cfg(feature = "westend-native")]
13281328
if config.chain_spec.is_westend() {
1329-
return chain_ops!(config, jaeger_agent, None; westend_runtime, WestendExecutorDispatch, Westend);
1329+
return chain_ops!(config, jaeger_agent, None; westend_runtime, WestendExecutorDispatch, Westend)
13301330
}
13311331

13321332
#[cfg(feature = "polkadot-native")]
13331333
{
1334-
return chain_ops!(config, jaeger_agent, None; polkadot_runtime, PolkadotExecutorDispatch, Polkadot);
1334+
return chain_ops!(config, jaeger_agent, None; polkadot_runtime, PolkadotExecutorDispatch, Polkadot)
13351335
}
13361336

13371337
#[cfg(not(feature = "polkadot-native"))]
@@ -1366,9 +1366,9 @@ pub fn build_full(
13661366
hwbench: Option<sc_sysinfo::HwBench>,
13671367
) -> Result<NewFull<Client>, Error> {
13681368
#[cfg(feature = "rococo-native")]
1369-
if config.chain_spec.is_rococo()
1370-
|| config.chain_spec.is_wococo()
1371-
|| config.chain_spec.is_versi()
1369+
if config.chain_spec.is_rococo() ||
1370+
config.chain_spec.is_wococo() ||
1371+
config.chain_spec.is_versi()
13721372
{
13731373
return new_full::<rococo_runtime::RuntimeApi, RococoExecutorDispatch, _>(
13741374
config,
@@ -1384,7 +1384,7 @@ pub fn build_full(
13841384
malus_finality_delay,
13851385
hwbench,
13861386
)
1387-
.map(|full| full.with_client(Client::Rococo));
1387+
.map(|full| full.with_client(Client::Rococo))
13881388
}
13891389

13901390
#[cfg(feature = "kusama-native")]
@@ -1403,7 +1403,7 @@ pub fn build_full(
14031403
malus_finality_delay,
14041404
hwbench,
14051405
)
1406-
.map(|full| full.with_client(Client::Kusama));
1406+
.map(|full| full.with_client(Client::Kusama))
14071407
}
14081408

14091409
#[cfg(feature = "westend-native")]
@@ -1422,7 +1422,7 @@ pub fn build_full(
14221422
malus_finality_delay,
14231423
hwbench,
14241424
)
1425-
.map(|full| full.with_client(Client::Westend));
1425+
.map(|full| full.with_client(Client::Westend))
14261426
}
14271427

14281428
#[cfg(feature = "polkadot-native")]
@@ -1444,7 +1444,7 @@ pub fn build_full(
14441444
malus_finality_delay,
14451445
hwbench,
14461446
)
1447-
.map(|full| full.with_client(Client::Polkadot));
1447+
.map(|full| full.with_client(Client::Polkadot))
14481448
}
14491449

14501450
#[cfg(not(feature = "polkadot-native"))]
@@ -1483,7 +1483,7 @@ pub fn revert_backend(
14831483
let revertible = blocks.min(best_number - finalized);
14841484

14851485
if revertible == 0 {
1486-
return Ok(());
1486+
return Ok(())
14871487
}
14881488

14891489
let number = best_number - revertible;

0 commit comments

Comments
 (0)