Skip to content

Commit

Permalink
fix: make client.timeout field optional (#149)
Browse files Browse the repository at this point in the history
fix #146.
  • Loading branch information
shouya authored Sep 18, 2024
1 parent ef30e22 commit bf8610a
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 bf8610a

Please sign in to comment.