diff --git a/crates/trigger-http/src/lib.rs b/crates/trigger-http/src/lib.rs index aea876b3a..2a9551bc3 100644 --- a/crates/trigger-http/src/lib.rs +++ b/crates/trigger-http/src/lib.rs @@ -82,7 +82,7 @@ pub struct CliArgs { /// e.g. 1..8. If it's a range, a number will be selected from that range /// at random for each new instance. #[clap(long, value_parser = parse_usize_range)] - max_instance_reuse_count: Option>, + pub max_instance_reuse_count: Option>, /// Maximum number of concurrent requests to send to a single component /// instance. @@ -95,7 +95,7 @@ pub struct CliArgs { /// e.g. 1..8. If it's a range, a number will be selected from that range /// at random for each new instance. #[clap(long, value_parser = parse_usize_range)] - max_instance_concurrent_reuse_count: Option>, + pub max_instance_concurrent_reuse_count: Option>, /// Request timeout to enforce. /// @@ -109,7 +109,7 @@ pub struct CliArgs { /// e.g. 1..8s. If it's a range, a value will be selected from that range /// at random for each new instance. #[clap(long, value_parser = parse_duration_range)] - request_timeout: Option>, + pub request_timeout: Option>, /// Time to hold an idle component instance for possible reuse before /// dropping it. @@ -122,7 +122,7 @@ pub struct CliArgs { /// e.g. 1..8s. If it's a range, a value will be selected from that range /// at random for each new instance. #[clap(long, default_value = "1s", value_parser = parse_duration_range)] - idle_instance_timeout: Range, + pub idle_instance_timeout: Range, } impl CliArgs { @@ -139,7 +139,7 @@ impl CliArgs { } #[derive(Copy, Clone)] -enum Range { +pub enum Range { Value(T), Bounds(T, T), }