mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 06:01:02 +00:00
Split polkadot-service (#310)
* Substrate service * Splitting polkadot service * Specialised components * Specialised components * Docs and style * Docs and style * Final touches * Added db key assertion
This commit is contained in:
committed by
Gav Wood
parent
ee31955969
commit
b8216372c7
@@ -25,7 +25,7 @@ extern crate futures;
|
||||
#[macro_use]
|
||||
extern crate error_chain;
|
||||
|
||||
use cli::{ClientError, ServiceComponents, ClientBackend, PolkadotBlock, StateMachineBackend, Service};
|
||||
use cli::{ServiceComponents, Service};
|
||||
use futures::sync::oneshot;
|
||||
use futures::{future, Future};
|
||||
|
||||
@@ -51,9 +51,7 @@ impl cli::Worker for Worker {
|
||||
exit.map_err(drop)
|
||||
}
|
||||
|
||||
fn work<C: ServiceComponents>(self, _service: &Service<C>) -> Self::Exit
|
||||
where ClientError: From<<<<C as ServiceComponents>::Backend as ClientBackend<PolkadotBlock>>::State as StateMachineBackend>::Error>,
|
||||
{
|
||||
fn work<C: ServiceComponents>(self, _service: &Service<C>) -> Self::Exit {
|
||||
self.exit_only()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user