mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-17 09:25:50 +00:00
fix: add client connect timeout to scheduled task (#3883)
This commit is contained in:
parent
ee7b35a04a
commit
ab828b81e4
@ -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::<Instance>(conn)?;
|
||||
|
Loading…
Reference in New Issue
Block a user