Skip to content

Commit

Permalink
Increase http timeout from 1s to 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
mpizenberg committed Feb 8, 2021
1 parent e0dbd1b commit f4fa0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn default_elm_home() -> anyhow::Result<PathBuf> {

pub fn http_fetch(url: &str) -> Result<String, Box<dyn Error>> {
let agent = ureq::builder()
.timeout_connect(std::time::Duration::from_secs(1))
.timeout_connect(std::time::Duration::from_secs(10))
.build();
let response = agent
.get(url)
Expand Down

0 comments on commit f4fa0fa

Please sign in to comment.