fix(light-rpc/parity) : Remove unused client (#9802)
This commit is contained in:
parent
fe84718b55
commit
f4c421f77a
@ -542,7 +542,6 @@ impl<C: LightChainClient + 'static> LightDependencies<C> {
|
|||||||
false => None,
|
false => None,
|
||||||
};
|
};
|
||||||
handler.extend_with(light::ParityClient::new(
|
handler.extend_with(light::ParityClient::new(
|
||||||
self.client.clone(),
|
|
||||||
Arc::new(dispatcher.clone()),
|
Arc::new(dispatcher.clone()),
|
||||||
self.secret_store.clone(),
|
self.secret_store.clone(),
|
||||||
self.logger.clone(),
|
self.logger.clone(),
|
||||||
|
@ -27,8 +27,6 @@ use sync::LightSyncProvider;
|
|||||||
use ethcore::account_provider::AccountProvider;
|
use ethcore::account_provider::AccountProvider;
|
||||||
use ethcore_logger::RotatingLogger;
|
use ethcore_logger::RotatingLogger;
|
||||||
|
|
||||||
use light::client::LightChainClient;
|
|
||||||
|
|
||||||
use jsonrpc_core::{Result, BoxFuture};
|
use jsonrpc_core::{Result, BoxFuture};
|
||||||
use jsonrpc_core::futures::Future;
|
use jsonrpc_core::futures::Future;
|
||||||
use jsonrpc_macros::Trailing;
|
use jsonrpc_macros::Trailing;
|
||||||
@ -49,7 +47,6 @@ use Host;
|
|||||||
|
|
||||||
/// Parity implementation for light client.
|
/// Parity implementation for light client.
|
||||||
pub struct ParityClient {
|
pub struct ParityClient {
|
||||||
client: Arc<LightChainClient>,
|
|
||||||
light_dispatch: Arc<LightDispatcher>,
|
light_dispatch: Arc<LightDispatcher>,
|
||||||
accounts: Arc<AccountProvider>,
|
accounts: Arc<AccountProvider>,
|
||||||
logger: Arc<RotatingLogger>,
|
logger: Arc<RotatingLogger>,
|
||||||
@ -62,7 +59,6 @@ pub struct ParityClient {
|
|||||||
impl ParityClient {
|
impl ParityClient {
|
||||||
/// Creates new `ParityClient`.
|
/// Creates new `ParityClient`.
|
||||||
pub fn new(
|
pub fn new(
|
||||||
client: Arc<LightChainClient>,
|
|
||||||
light_dispatch: Arc<LightDispatcher>,
|
light_dispatch: Arc<LightDispatcher>,
|
||||||
accounts: Arc<AccountProvider>,
|
accounts: Arc<AccountProvider>,
|
||||||
logger: Arc<RotatingLogger>,
|
logger: Arc<RotatingLogger>,
|
||||||
@ -78,7 +74,6 @@ impl ParityClient {
|
|||||||
settings,
|
settings,
|
||||||
signer,
|
signer,
|
||||||
ws_address,
|
ws_address,
|
||||||
client,
|
|
||||||
gas_price_percentile,
|
gas_price_percentile,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user