Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
43376f00
Unverified
Commit
43376f00
authored
Oct 26, 2021
by
Squirrel
Browse files
Revert "cargo fmt"
This reverts commit
5a2c7d85
.
parent
5a2c7d85
Changes
2
Show whitespace changes
Inline
Side-by-side
node/service/src/lib.rs
View file @
43376f00
...
@@ -30,36 +30,43 @@ pub use self::overseer::{OverseerGen, OverseerGenArgs, RealOverseerGen};
...
@@ -30,36 +30,43 @@ pub use self::overseer::{OverseerGen, OverseerGenArgs, RealOverseerGen};
#[cfg(all(test,
feature
=
"disputes"
))]
#[cfg(all(test,
feature
=
"disputes"
))]
mod
tests
;
mod
tests
;
use
grandpa
::{
self
,
FinalityProofProvider
as
GrandpaFinalityProofProvider
};
use
{
use
polkadot_node_core_approval_voting
::
Config
as
ApprovalVotingConfig
;
grandpa
::{
self
,
FinalityProofProvider
as
GrandpaFinalityProofProvider
},
use
polkadot_node_core_av_store
::{
Config
as
AvailabilityConfig
,
Error
as
AvailabilityError
};
polkadot_node_core_approval_voting
::
Config
as
ApprovalVotingConfig
,
use
polkadot_node_core_candidate_validation
::
Config
as
CandidateValidationConfig
;
polkadot_node_core_av_store
::
Config
as
AvailabilityConfig
,
use
polkadot_node_core_chain_selection
::{
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
,
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
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
sp_core
::
traits
::
SpawnNamed
;
pub
use
polkadot_overseer
::{
Handle
,
Overseer
,
OverseerConnector
,
OverseerHandle
};
pub
use
{
pub
use
polkadot_primitives
::
v1
::
ParachainHost
;
polkadot_overseer
::{
Handle
,
Overseer
,
OverseerConnector
,
OverseerHandle
},
pub
use
relay_chain_selection
::
SelectRelayChain
;
polkadot_primitives
::
v1
::
ParachainHost
,
pub
use
sc_client_api
::
AuxStore
;
relay_chain_selection
::
SelectRelayChain
,
pub
use
sp_authority_discovery
::
AuthorityDiscoveryApi
;
sc_client_api
::
AuxStore
,
pub
use
sp_blockchain
::
HeaderBackend
;
sp_authority_discovery
::
AuthorityDiscoveryApi
,
pub
use
sp_consensus_babe
::
BabeApi
;
sp_blockchain
::
HeaderBackend
,
sp_consensus_babe
::
BabeApi
,
};
use
polkadot_subsystem
::
jaeger
;
use
polkadot_subsystem
::
jaeger
;
use
std
::{
sync
::
Arc
,
time
::
Duration
};
use
std
::{
sync
::
Arc
,
time
::
Duration
};
use
prometheus_endpoint
::
Registry
;
use
prometheus_endpoint
::
Registry
;
use
service
::{
KeystoreContainer
,
RpcHandlers
};
use
service
::
KeystoreContainer
;
use
telemetry
::{
Telemetry
,
TelemetryWorker
,
TelemetryWorkerHandle
};
use
service
::
RpcHandlers
;
use
telemetry
::
TelemetryWorker
;
use
telemetry
::{
Telemetry
,
TelemetryWorkerHandle
};
#[cfg(feature
=
"rococo-native"
)]
#[cfg(feature
=
"rococo-native"
)]
pub
use
polkadot_client
::
RococoExecutorDispatch
;
pub
use
polkadot_client
::
RococoExecutorDispatch
;
...
...
node/service/src/parachains_db/mod.rs
View file @
43376f00
...
@@ -13,8 +13,7 @@
...
@@ -13,8 +13,7 @@
//! A `RocksDB` instance for storing parachain data; availability data, and approvals.
//! A `RocksDB` instance for storing parachain data; availability data, and approvals.
use
kvdb
::
KeyValueDB
;
use
{
kvdb
::
KeyValueDB
,
std
::
io
,
std
::
path
::
PathBuf
,
std
::
sync
::
Arc
};
use
std
::{
io
,
path
::
PathBuf
,
sync
::
Arc
};
mod
upgrade
;
mod
upgrade
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment