Skip to content

Commit ee449ab

Browse files
Update lib/router-config/src/traffic_shaping.rs
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 328c524 commit ee449ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/router-config/src/traffic_shaping.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ fn default_request_timeout() -> DurationOrExpression {
8383

8484
#[derive(Debug, Deserialize, Serialize, JsonSchema, Clone)]
8585
pub enum DurationOrExpression {
86-
/// A fixed duration timeout in milliseconds.
86+
/// A fixed duration, e.g., "5s" or "100ms".
8787
#[serde(
8888
deserialize_with = "humantime_serde::deserialize",
8989
serialize_with = "humantime_serde::serialize"
9090
)]
9191
Duration(Duration),
92-
/// A VRL expression that evaluates to a duration in milliseconds.
92+
/// A VRL expression that evaluates to a duration. The result can be an integer (milliseconds), a float (milliseconds), or a duration string (e.g. "5s").
9393
Expression(Expression),
9494
}
9595

0 commit comments

Comments
 (0)