Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Nov 1, 2024
1 parent f531cb0 commit 88345b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions node/cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ pub type TransactionPool = sc_transaction_pool::FullPool<Block, FullClient>;
/// imported and generated.
const GRANDPA_JUSTIFICATION_PERIOD: u32 = 512;

#[allow(clippy::type_complexity)]
/// Creates a new partial node.
pub fn new_partial(
config: &Configuration,
Expand Down Expand Up @@ -388,7 +389,7 @@ pub fn new_full_base<N: NetworkBackend<Block, <Block as BlockT>::Hash>>(
}
}

let role = config.role.clone();
let role = config.role;
let force_authoring = config.force_authoring;
let backoff_authoring_blocks =
Some(sc_consensus_slots::BackoffAuthoringOnFinalizedHeadLagging::default());
Expand Down Expand Up @@ -586,24 +587,22 @@ pub fn new_full(config: Configuration, cli: Cli) -> Result<TaskManager, ServiceE

let task_manager = match config.network.network_backend {
sc_network::config::NetworkBackendType::Libp2p => {
let task_manager = new_full_base::<sc_network::NetworkWorker<_, _>>(
new_full_base::<sc_network::NetworkWorker<_, _>>(
config,
cli.no_hardware_benchmarks,
|_, _| (),
cli.tss_server_endpoint,
)
.map(|NewFullBase { task_manager, .. }| task_manager)?;
task_manager
.map(|NewFullBase { task_manager, .. }| task_manager)?
},
sc_network::config::NetworkBackendType::Litep2p => {
let task_manager = new_full_base::<sc_network::Litep2pNetworkBackend>(
new_full_base::<sc_network::Litep2pNetworkBackend>(
config,
cli.no_hardware_benchmarks,
|_, _| (),
cli.tss_server_endpoint,
)
.map(|NewFullBase { task_manager, .. }| task_manager)?;
task_manager
.map(|NewFullBase { task_manager, .. }| task_manager)?
},
};

Expand Down
1 change: 1 addition & 0 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ use pallet_im_online::sr25519::AuthorityId as ImOnlineId;
use pallet_session::historical as pallet_session_historical;
#[cfg(any(feature = "std", test))]
pub use pallet_staking::StakerStatus;
#[allow(deprecated)]
pub use pallet_transaction_payment::{CurrencyAdapter, Multiplier, TargetedFeeAdjustment};
use pallet_transaction_payment::{FeeDetails, RuntimeDispatchInfo};
use scale_info::TypeInfo;
Expand Down

0 comments on commit 88345b2

Please sign in to comment.