From: Alex Roman Date: Mon, 21 Aug 2023 08:53:35 +0000 (+0100) Subject: fix: add client connect timeout to scheduled task (#3883) X-Git-Url: http://these/git/%7B%60/feeds/static/git-logo.png?a=commitdiff_plain;h=ab828b81e4fd06675eb4058daad6d67cd72983e1;p=lemmy.git fix: add client connect timeout to scheduled task (#3883) --- diff --git a/src/scheduled_tasks.rs b/src/scheduled_tasks.rs index 28315bea..a9349472 100644 --- a/src/scheduled_tasks.rs +++ b/src/scheduled_tasks.rs @@ -364,6 +364,7 @@ fn update_instance_software(conn: &mut PgConnection, user_agent: &str) -> LemmyR let client = Client::builder() .user_agent(user_agent) .timeout(REQWEST_TIMEOUT) + .connect_timeout(REQWEST_TIMEOUT) .build()?; let instances = instance::table.get_results::(conn)?;