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

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gilescope committed Oct 25, 2021
1 parent c35eb4f commit 5a2c7d8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 28 deletions.
47 changes: 20 additions & 27 deletions node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,43 +30,36 @@ pub use self::overseer::{OverseerGen, OverseerGenArgs, RealOverseerGen};
#[cfg(all(test, feature = "disputes"))]
mod tests;

use {
grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider},
polkadot_node_core_approval_voting::Config as ApprovalVotingConfig,
polkadot_node_core_av_store::Config as AvailabilityConfig,
polkadot_node_core_av_store::Error as AvailabilityError,
polkadot_node_core_candidate_validation::Config as CandidateValidationConfig,
polkadot_node_core_chain_selection::{
self as chain_selection_subsystem, Config as ChainSelectionConfig,
},
polkadot_node_core_dispute_coordinator::Config as DisputeCoordinatorConfig,
polkadot_overseer::BlockInfo,
sc_client_api::ExecutorProvider,
sp_trie::PrefixedMemoryDB,
tracing::info,
use grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider};
use polkadot_node_core_approval_voting::Config as ApprovalVotingConfig;
use polkadot_node_core_av_store::{Config as AvailabilityConfig, Error as AvailabilityError};
use polkadot_node_core_candidate_validation::Config as CandidateValidationConfig;
use polkadot_node_core_chain_selection::{
self as chain_selection_subsystem, Config as ChainSelectionConfig,
};
use polkadot_node_core_dispute_coordinator::Config as DisputeCoordinatorConfig;
use polkadot_overseer::BlockInfo;
use sc_client_api::ExecutorProvider;
use sp_trie::PrefixedMemoryDB;
use tracing::info;

pub use sp_core::traits::SpawnNamed;

pub use {
polkadot_overseer::{Handle, Overseer, OverseerConnector, OverseerHandle},
polkadot_primitives::v1::ParachainHost,
relay_chain_selection::SelectRelayChain,
sc_client_api::AuxStore,
sp_authority_discovery::AuthorityDiscoveryApi,
sp_blockchain::HeaderBackend,
sp_consensus_babe::BabeApi,
};
pub use polkadot_overseer::{Handle, Overseer, OverseerConnector, OverseerHandle};
pub use polkadot_primitives::v1::ParachainHost;
pub use relay_chain_selection::SelectRelayChain;
pub use sc_client_api::AuxStore;
pub use sp_authority_discovery::AuthorityDiscoveryApi;
pub use sp_blockchain::HeaderBackend;
pub use sp_consensus_babe::BabeApi;

use polkadot_subsystem::jaeger;

use std::{sync::Arc, time::Duration};

use prometheus_endpoint::Registry;
use service::KeystoreContainer;
use service::RpcHandlers;
use telemetry::TelemetryWorker;
use telemetry::{Telemetry, TelemetryWorkerHandle};
use service::{KeystoreContainer, RpcHandlers};
use telemetry::{Telemetry, TelemetryWorker, TelemetryWorkerHandle};

#[cfg(feature = "rococo-native")]
pub use polkadot_client::RococoExecutorDispatch;
Expand Down
3 changes: 2 additions & 1 deletion node/service/src/parachains_db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

//! A `RocksDB` instance for storing parachain data; availability data, and approvals.

use {kvdb::KeyValueDB, std::io, std::path::PathBuf, std::sync::Arc};
use kvdb::KeyValueDB;
use std::{io, path::PathBuf, sync::Arc};

mod upgrade;

Expand Down

0 comments on commit 5a2c7d8

Please sign in to comment.