Add -len suffix to flags.

This commit is contained in:
Paul Hauner
2023-07-07 14:40:30 +10:00
parent 15ed85d6f9
commit f576b94f20
3 changed files with 8 additions and 8 deletions

View File

@@ -1142,8 +1142,8 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
.takes_value(true) .takes_value(true)
) )
.arg( .arg(
Arg::with_name("beacon-processor-work-queue") Arg::with_name("beacon-processor-work-queue-len")
.long("beacon-processor-work-queue") .long("beacon-processor-work-queue-len")
.value_name("INTEGER") .value_name("INTEGER")
.help("Specifies the length of the inbound event queue. Increasing this value \ .help("Specifies the length of the inbound event queue. Increasing this value \
may prevent messages from being dropped at risk of overwhelming the \ may prevent messages from being dropped at risk of overwhelming the \
@@ -1153,8 +1153,8 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
.takes_value(true) .takes_value(true)
) )
.arg( .arg(
Arg::with_name("beacon-processor-reprocess-queue") Arg::with_name("beacon-processor-reprocess-queue-len")
.long("beacon-processor-reprocess-queue") .long("beacon-processor-reprocess-queue-len")
.value_name("INTEGER") .value_name("INTEGER")
.help("Specifies the length of the queue for messages requiring delayed processing. \ .help("Specifies the length of the queue for messages requiring delayed processing. \
Increasing this value may prevent messages from being dropped at risk of \ Increasing this value may prevent messages from being dropped at risk of \

View File

@@ -816,9 +816,9 @@ pub fn get_config<E: EthSpec>(
} }
client_config.beacon_processor.max_work_event_queue_len = client_config.beacon_processor.max_work_event_queue_len =
clap_utils::parse_required(cli_args, "beacon-processor-work-queue")?; clap_utils::parse_required(cli_args, "beacon-processor-work-queue-len")?;
client_config.beacon_processor.max_scheduled_work_queue_len = client_config.beacon_processor.max_scheduled_work_queue_len =
clap_utils::parse_required(cli_args, "beacon-processor-reprocess-queue")?; clap_utils::parse_required(cli_args, "beacon-processor-reprocess-queue-len")?;
client_config client_config
.beacon_processor .beacon_processor
.max_gossip_attestation_batch_size = .max_gossip_attestation_batch_size =

View File

@@ -2287,8 +2287,8 @@ fn beacon_processor() {
CommandLineTest::new() CommandLineTest::new()
.flag("beacon-processor-max-workers", Some("1")) .flag("beacon-processor-max-workers", Some("1"))
.flag("beacon-processor-work-queue", Some("2")) .flag("beacon-processor-work-queue-len", Some("2"))
.flag("beacon-processor-reprocess-queue", Some("3")) .flag("beacon-processor-reprocess-queue-len", Some("3"))
.flag("beacon-processor-attestation-batch-size", Some("4")) .flag("beacon-processor-attestation-batch-size", Some("4"))
.flag("beacon-processor-aggregate-batch-size", Some("5")) .flag("beacon-processor-aggregate-batch-size", Some("5"))
.flag("disable-backfill-rate-limiting", None) .flag("disable-backfill-rate-limiting", None)