From f576b94f20242679b39a33c28d9334413a8d3e86 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Fri, 7 Jul 2023 14:40:30 +1000 Subject: [PATCH] Add -len suffix to flags. --- beacon_node/src/cli.rs | 8 ++++---- beacon_node/src/config.rs | 4 ++-- lighthouse/tests/beacon_node.rs | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/beacon_node/src/cli.rs b/beacon_node/src/cli.rs index b1b6fcd058..d26e3488c9 100644 --- a/beacon_node/src/cli.rs +++ b/beacon_node/src/cli.rs @@ -1142,8 +1142,8 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> { .takes_value(true) ) .arg( - Arg::with_name("beacon-processor-work-queue") - .long("beacon-processor-work-queue") + Arg::with_name("beacon-processor-work-queue-len") + .long("beacon-processor-work-queue-len") .value_name("INTEGER") .help("Specifies the length of the inbound event queue. Increasing this value \ 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) ) .arg( - Arg::with_name("beacon-processor-reprocess-queue") - .long("beacon-processor-reprocess-queue") + Arg::with_name("beacon-processor-reprocess-queue-len") + .long("beacon-processor-reprocess-queue-len") .value_name("INTEGER") .help("Specifies the length of the queue for messages requiring delayed processing. \ Increasing this value may prevent messages from being dropped at risk of \ diff --git a/beacon_node/src/config.rs b/beacon_node/src/config.rs index 7d9b01d852..bdae325805 100644 --- a/beacon_node/src/config.rs +++ b/beacon_node/src/config.rs @@ -816,9 +816,9 @@ pub fn get_config( } 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 = - clap_utils::parse_required(cli_args, "beacon-processor-reprocess-queue")?; + clap_utils::parse_required(cli_args, "beacon-processor-reprocess-queue-len")?; client_config .beacon_processor .max_gossip_attestation_batch_size = diff --git a/lighthouse/tests/beacon_node.rs b/lighthouse/tests/beacon_node.rs index a3311b6bd4..a4c70e0a58 100644 --- a/lighthouse/tests/beacon_node.rs +++ b/lighthouse/tests/beacon_node.rs @@ -2287,8 +2287,8 @@ fn beacon_processor() { CommandLineTest::new() .flag("beacon-processor-max-workers", Some("1")) - .flag("beacon-processor-work-queue", Some("2")) - .flag("beacon-processor-reprocess-queue", Some("3")) + .flag("beacon-processor-work-queue-len", Some("2")) + .flag("beacon-processor-reprocess-queue-len", Some("3")) .flag("beacon-processor-attestation-batch-size", Some("4")) .flag("beacon-processor-aggregate-batch-size", Some("5")) .flag("disable-backfill-rate-limiting", None)