From bf8610a257c396752e42e4ebae565eb1a981a512 Mon Sep 17 00:00:00 2001 From: shouya <526598+shouya@users.noreply.github.com> Date: Wed, 18 Sep 2024 23:15:20 +0900 Subject: [PATCH] fix: make client.timeout field optional (#149) fix https://github.com/shouya/rss-funnel/issues/146. --- src/client.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client.rs b/src/client.rs index e7b4d13..655d8fc 100644 --- a/src/client.rs +++ b/src/client.rs @@ -55,6 +55,7 @@ pub struct ClientConfig { #[schemars(with = "String")] pub cache_ttl: Option, /// Request timeout (Format: "4s", "10m", "1h", "1d") + #[serde(default)] #[serde(deserialize_with = "duration_str::deserialize_option_duration")] #[schemars(with = "String")] pub timeout: Option,