From 78940c281fab91802c7c738cf55300c387f9a12c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20S=C3=BCberkr=C3=BCb?= Date: Mon, 28 Jun 2021 20:14:17 +0200 Subject: [PATCH] Fix web client timeout This resulted in downloads being aborted after 10s. Using `connect_timeout` instead which seems to be what we actually want. --- client/src/net/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/net/client.rs b/client/src/net/client.rs index 7849779c..6953c2c1 100644 --- a/client/src/net/client.rs +++ b/client/src/net/client.rs @@ -10,7 +10,7 @@ lazy_static::lazy_static! { reqwest::Client::builder() .user_agent(USER_AGENT) .use_rustls_tls() - .timeout(std::time::Duration::from_secs(10)) + .connect_timeout(std::time::Duration::from_secs(10)) .build() .expect("FATAL: Failed to build reqwest client!") };