From 7fc3fbbf6bab7e0d1ee22894c3d4bdc704d3ec05 Mon Sep 17 00:00:00 2001 From: steviez Date: Wed, 18 Dec 2024 16:23:52 -0600 Subject: [PATCH] bench-streamer: Fix argument parsing (#4168) The value to parse is declared as num-producers but the code is currently parsing num_producers. So, this value cannot actually be controlled on the CLI as-is --- bench-streamer/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench-streamer/src/main.rs b/bench-streamer/src/main.rs index cba5486fc5bcb9..f34c1e69cc0d9e 100644 --- a/bench-streamer/src/main.rs +++ b/bench-streamer/src/main.rs @@ -84,7 +84,7 @@ fn main() -> Result<()> { num_sockets = max(num_sockets, n.to_string().parse().expect("integer")); } - let num_producers: u64 = matches.value_of_t("num_producers").unwrap_or(4); + let num_producers: u64 = matches.value_of_t("num-producers").unwrap_or(4); let port = 0; let ip_addr = IpAddr::V4(Ipv4Addr::UNSPECIFIED);