Skip to content

Commit

Permalink
bench-streamer: Fix argument parsing (#4168)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
steviez authored Dec 18, 2024
1 parent e2cf502 commit 7fc3fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench-streamer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7fc3fbb

Please sign in to comment.