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

Commit

Permalink
remove rpc_http_threads
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Sep 15, 2021
1 parent fdf3bc8 commit 664d000
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions client/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@

use sc_cli;
use sc_service::{
BasePath,
config::{TelemetryEndpoints, PrometheusConfig},
TransactionPoolOptions,
config::{PrometheusConfig, TelemetryEndpoints},
BasePath, TransactionPoolOptions,
};
use std::{
fs,
io::{self, Write},
net::SocketAddr,
};
use structopt::StructOpt;
use std::net::SocketAddr;

/// The `purge-chain` command used to remove the whole chain: the parachain and the relaychain.
#[derive(Debug, StructOpt)]
Expand Down Expand Up @@ -66,10 +65,12 @@ impl PurgeChainCmd {
let db_paths = databases
.iter()
.map(|(chain_label, database)| {
database.path().ok_or_else(|| sc_cli::Error::Input(format!(
"Cannot purge custom database implementation of: {}",
chain_label,
)))
database.path().ok_or_else(|| {
sc_cli::Error::Input(format!(
"Cannot purge custom database implementation of: {}",
chain_label,
))
})
})
.collect::<sc_cli::Result<Vec<_>>>()?;

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

new_base.validator = self.base.validator || self.collator;
new_base.validator = self.base.validator || self.collator;

NormalizedRunCmd {
base: new_base,
parachain_id: self.parachain_id,
NormalizedRunCmd {
base: new_base,
parachain_id: self.parachain_id,
}
}
}
Expand Down Expand Up @@ -205,7 +206,10 @@ impl sc_cli::CliConfiguration for NormalizedRunCmd {
self.base.force_authoring()
}

fn prometheus_config(&self, default_listen_port: u16) -> sc_cli::Result<Option<PrometheusConfig>> {
fn prometheus_config(
&self,
default_listen_port: u16,
) -> sc_cli::Result<Option<PrometheusConfig>> {
self.base.prometheus_config(default_listen_port)
}

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

fn rpc_http_threads(&self) -> sc_cli::Result<Option<usize>> {
self.base.rpc_http_threads()
}

fn rpc_cors(&self, is_dev: bool) -> sc_cli::Result<Option<Vec<String>>> {
self.base.rpc_cors(is_dev)
}
Expand Down

0 comments on commit 664d000

Please sign in to comment.