diff --git a/node/src/command.rs b/node/src/command.rs index d81b806ced..f8f4990d0f 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -241,14 +241,14 @@ pub fn run() -> sc_cli::Result<()> { } // If the operator did **not** supply `--rpc-max-subscriptions-per-connection` set to high value. config.rpc.max_subs_per_conn = - match arg_matches.value_source("rpc-max-subscriptions-per-connection") { + match arg_matches.value_source("rpc_max_subscriptions_per_connection") { Some(ValueSource::CommandLine) => { cli.run.rpc_params.rpc_max_subscriptions_per_connection } _ => 10000, }; // If the operator did **not** supply `--rpc-max-connections` set to high value. - config.rpc.max_connections = match arg_matches.value_source("rpc-max-connections") { + config.rpc.max_connections = match arg_matches.value_source("rpc_max_connections") { Some(ValueSource::CommandLine) => cli.run.rpc_params.rpc_max_connections, _ => 10000, };