Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
Fix web client timeout
Browse files Browse the repository at this point in the history
This resulted in downloads being aborted after 10s.
Using `connect_timeout` instead which seems to be what we actually
want.
  • Loading branch information
timsueberkrueb authored and Songtronix committed Jun 28, 2021
1 parent 8d8bbf3 commit 78940c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/net/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
};
Expand Down

0 comments on commit 78940c2

Please sign in to comment.