Skip to content

Commit a39a7a2

Browse files
authored
Merge pull request #1985 from opentensor/fix-rpc-panic-2
Fix node flag rpc panic
2 parents ca2fa1e + 663a29c commit a39a7a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/src/command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,14 +318,14 @@ fn customise_config(arg_matches: &ArgMatches, config: Configuration) -> Configur
318318

319319
// If the operator did **not** supply `--rpc-max-subscriptions-per-connection` set to high value.
320320
config.rpc.max_subs_per_conn = match arg_matches
321-
.value_source("rpc-max-subscriptions-per-connection")
321+
.value_source("rpc_max_subscriptions_per_connection")
322322
{
323323
Some(ValueSource::CommandLine) => cli.run.rpc_params.rpc_max_subscriptions_per_connection,
324324
_ => 10000,
325325
};
326326

327327
// If the operator did **not** supply `--rpc-max-connections` set to high value.
328-
config.rpc.max_connections = match arg_matches.value_source("rpc-max-connections") {
328+
config.rpc.max_connections = match arg_matches.value_source("rpc_max_connections") {
329329
Some(ValueSource::CommandLine) => cli.run.rpc_params.rpc_max_connections,
330330
_ => 10000,
331331
};

0 commit comments

Comments
 (0)