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

Commit 664d000

Browse files
committed
remove rpc_http_threads
paritytech/substrate#9737
1 parent fdf3bc8 commit 664d000

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

client/cli/src/lib.rs

+17-17
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@
2020

2121
use sc_cli;
2222
use sc_service::{
23-
BasePath,
24-
config::{TelemetryEndpoints, PrometheusConfig},
25-
TransactionPoolOptions,
23+
config::{PrometheusConfig, TelemetryEndpoints},
24+
BasePath, TransactionPoolOptions,
2625
};
2726
use std::{
2827
fs,
2928
io::{self, Write},
29+
net::SocketAddr,
3030
};
3131
use structopt::StructOpt;
32-
use std::net::SocketAddr;
3332

3433
/// The `purge-chain` command used to remove the whole chain: the parachain and the relaychain.
3534
#[derive(Debug, StructOpt)]
@@ -66,10 +65,12 @@ impl PurgeChainCmd {
6665
let db_paths = databases
6766
.iter()
6867
.map(|(chain_label, database)| {
69-
database.path().ok_or_else(|| sc_cli::Error::Input(format!(
70-
"Cannot purge custom database implementation of: {}",
71-
chain_label,
72-
)))
68+
database.path().ok_or_else(|| {
69+
sc_cli::Error::Input(format!(
70+
"Cannot purge custom database implementation of: {}",
71+
chain_label,
72+
))
73+
})
7374
})
7475
.collect::<sc_cli::Result<Vec<_>>>()?;
7576

@@ -152,11 +153,11 @@ impl RunCmd {
152153
pub fn normalize(&self) -> NormalizedRunCmd {
153154
let mut new_base = self.base.clone();
154155

155-
new_base.validator = self.base.validator || self.collator;
156+
new_base.validator = self.base.validator || self.collator;
156157

157-
NormalizedRunCmd {
158-
base: new_base,
159-
parachain_id: self.parachain_id,
158+
NormalizedRunCmd {
159+
base: new_base,
160+
parachain_id: self.parachain_id,
160161
}
161162
}
162163
}
@@ -205,7 +206,10 @@ impl sc_cli::CliConfiguration for NormalizedRunCmd {
205206
self.base.force_authoring()
206207
}
207208

208-
fn prometheus_config(&self, default_listen_port: u16) -> sc_cli::Result<Option<PrometheusConfig>> {
209+
fn prometheus_config(
210+
&self,
211+
default_listen_port: u16,
212+
) -> sc_cli::Result<Option<PrometheusConfig>> {
209213
self.base.prometheus_config(default_listen_port)
210214
}
211215

@@ -217,10 +221,6 @@ impl sc_cli::CliConfiguration for NormalizedRunCmd {
217221
self.base.rpc_ws_max_connections()
218222
}
219223

220-
fn rpc_http_threads(&self) -> sc_cli::Result<Option<usize>> {
221-
self.base.rpc_http_threads()
222-
}
223-
224224
fn rpc_cors(&self, is_dev: bool) -> sc_cli::Result<Option<Vec<String>>> {
225225
self.base.rpc_cors(is_dev)
226226
}

0 commit comments

Comments
 (0)