From ab828b81e4fd06675eb4058daad6d67cd72983e1 Mon Sep 17 00:00:00 2001 From: Alex Roman Date: Mon, 21 Aug 2023 09:53:35 +0100 Subject: [PATCH] fix: add client connect timeout to scheduled task (#3883) --- src/scheduled_tasks.rs | 1 + 1 file changed, 1 insertion(+) 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)?; -- 2.44.1