Skip to content

Commit

Permalink
make Client.timeout field optional
Browse files Browse the repository at this point in the history
  • Loading branch information
shouya committed Sep 18, 2024
1 parent ef30e22 commit 13eb386
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ pub struct ClientConfig {
#[schemars(with = "String")]
pub cache_ttl: Option<Duration>,
/// Request timeout (Format: "4s", "10m", "1h", "1d")
#[serde(default)]
#[serde(deserialize_with = "duration_str::deserialize_option_duration")]
#[schemars(with = "String")]
pub timeout: Option<Duration>,
Expand Down

0 comments on commit 13eb386

Please sign in to comment.