Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed May 3, 2024
1 parent 256fbe8 commit c230b71
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
27 changes: 14 additions & 13 deletions cumulus/polkadot-parachain/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,44 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.

mod start_nodes;
mod consensus;
mod new_partial;
mod rpc_extensions;
mod start_node_impl;
mod new_partial;
mod start_nodes;

use cumulus_client_consensus_aura::collators::lookahead::{self as aura, Params as AuraParams};
use cumulus_client_consensus_common::ParachainBlockImport as TParachainBlockImport;
use sc_executor::{ WasmExecutor};
use sc_executor::WasmExecutor;
use sc_service::{PartialComponents, TFullBackend, TFullClient};
use sc_telemetry::{Telemetry, TelemetryWorkerHandle};
use std::{sync::Arc};
use std::sync::Arc;

// Exports from the service module

pub use start_nodes::{
asset_hub_lookahead::start_asset_hub_lookahead_node,
basic_lookahead::start_basic_lookahead_node,
generic_aura_lookahead::start_generic_aura_lookahead_node,
rococo_contracts::start_contracts_rococo_node, rococo_parachain::start_rococo_parachain_node,
shell::{start_shell_node, build_shell_import_queue},
};
pub use start_node_impl::start_node_impl;
pub use consensus::{
lookahead_aura_consensus::{build_aura_import_queue, start_lookahead_aura_consensus},
relay_chain_consensus::build_relay_to_aura_import_queue,
};
pub use new_partial::new_partial;
pub use rpc_extensions::{build_contracts_rpc_extensions, build_parachain_rpc_extensions};
pub use start_node_impl::start_node_impl;
pub use start_nodes::{
asset_hub_lookahead::start_asset_hub_lookahead_node,
basic_lookahead::start_basic_lookahead_node,
generic_aura_lookahead::start_generic_aura_lookahead_node,
rococo_contracts::start_contracts_rococo_node,
rococo_parachain::start_rococo_parachain_node,
shell::{build_shell_import_queue, start_shell_node},
};

/// Module with common types.
///
/// The idea is to help downstream implementors who don't rely on `parachains_common` for types.
/// Proxying the imports paths via this module makes it possible to only adjust imports here, as
/// opposed to replacing `parachains_common` imports in every file.
pub mod common_types {
pub use parachains_common::{AuraId, AccountId, Balance, Block, Hash, Nonce, Header};
pub use parachains_common::{AccountId, AuraId, Balance, Block, Hash, Header, Nonce};
}

use common_types::Block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.

use crate::service::{
aura, build_parachain_rpc_extensions,
build_relay_to_aura_import_queue, start_node_impl, AuraParams,
ParachainClient,
common_types::{AccountId, Balance, Block, Hash, Nonce}
aura, build_parachain_rpc_extensions, build_relay_to_aura_import_queue,
common_types::{AccountId, Balance, Block, Hash, Nonce},
start_node_impl, AuraParams, ParachainClient,
};
use codec::{Codec, Decode};
use cumulus_client_cli::CollatorOptions;
Expand Down
4 changes: 2 additions & 2 deletions cumulus/polkadot-parachain/src/service/start_nodes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
//! Contains logic for starting different collator nodes.
pub mod asset_hub_lookahead;
pub mod rococo_contracts;
pub mod shell;
pub mod basic_lookahead;
pub mod generic_aura_lookahead;
pub mod rococo_contracts;
pub mod rococo_parachain;
pub mod shell;

0 comments on commit c230b71

Please sign in to comment.