Client concurrency option
This commit is contained in:
parent
7c7414cf93
commit
976ffc062e
2 changed files with 6 additions and 1 deletions
|
|
@ -67,6 +67,9 @@ struct OptClient {
|
|||
/// Do not verify certificates
|
||||
#[argp(switch, short = 's')]
|
||||
skip_verif: bool,
|
||||
/// Maximum number of concurrent clients
|
||||
#[argp(option, default = "16")]
|
||||
concurrency: usize,
|
||||
/// Print debug info
|
||||
#[argp(switch, short = 'd')]
|
||||
debug: bool,
|
||||
|
|
@ -150,6 +153,7 @@ async fn main() {
|
|||
subopt.repeat,
|
||||
subopt.certs.as_deref(),
|
||||
subopt.skip_verif,
|
||||
subopt.concurrency,
|
||||
subopt.debug,
|
||||
)
|
||||
.await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue