Skip to content

Commit 09b3491

Browse files
authored
Merge pull request #395 from hatoo/deadline-help
More helpful message for deadline
2 parents 357960e + 8176dee commit 09b3491

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub enum ClientError {
147147
InvalidUri(#[from] http::uri::InvalidUri),
148148
#[error("timeout")]
149149
Timeout,
150-
#[error("deadline")]
150+
#[error("aborted due to deadline")]
151151
Deadline,
152152
#[error(transparent)]
153153
UrlGeneratorError(#[from] UrlGeneratorError),

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ struct Opts {
5353
n_http2_parallel: usize,
5454
#[clap(
5555
help = "Duration of application to send requests. If duration is specified, n is ignored.
56+
When the duration is reached, ongoing requests are aborted and counted as \"aborted due to deadline\"
5657
Examples: -z 10s -z 3m.",
5758
short = 'z'
5859
)]

0 commit comments

Comments
 (0)