Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kkast committed Nov 10, 2023
1 parent cdbde5b commit caf1714
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/parachain/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use sc_cli::{
};
use sc_service::config::{BasePath, PrometheusConfig};
use sp_runtime::traits::AccountIdConversion;
use std::net::SocketAddr;

fn load_spec(id_or_path: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
log::info!("Loading chain spec: {}", id_or_path);
Expand Down Expand Up @@ -353,6 +354,10 @@ impl CliConfiguration<Self> for RelayChainCli {
.or_else(|| self.base_path.clone().map(Into::into)))
}

fn rpc_addr(&self, default_listen_port: u16) -> Result<Option<SocketAddr>> {
self.base.base.rpc_addr(default_listen_port)
}

// fn rpc_http(&self, default_listen_port: u16) -> Result<Option<SocketAddr>> {
// self.base.base.rpc_http(default_listen_port)
// }
Expand Down Expand Up @@ -404,6 +409,10 @@ impl CliConfiguration<Self> for RelayChainCli {
self.base.base.rpc_methods()
}

fn rpc_max_connections(&self) -> Result<u32> {
self.base.base.rpc_max_connections()
}

// fn rpc_ws_max_connections(&self) -> Result<Option<usize>> {
// self.base.base.rpc_ws_max_connections()
// }
Expand Down

0 comments on commit caf1714

Please sign in to comment.