fix: Installer increase download req timeout from 30 seconds to 6 minutes

(cherry picked from commit a1912f8400)
This commit is contained in:
Arrowana
2021-12-28 11:04:48 +11:00
committed by Michael Vines
parent 7efd0391e9
commit 4645be3e52

View File

@ -91,7 +91,9 @@ fn download_to_temp(
let temp_dir = TempDir::new()?; let temp_dir = TempDir::new()?;
let temp_file = temp_dir.path().join("download"); let temp_file = temp_dir.path().join("download");
let client = reqwest::blocking::Client::new(); let client = reqwest::blocking::Client::builder()
.timeout(Duration::from_secs(360))
.build()?;
let progress_bar = new_spinner_progress_bar(); let progress_bar = new_spinner_progress_bar();
progress_bar.set_message(format!("{}Downloading...", TRUCK)); progress_bar.set_message(format!("{}Downloading...", TRUCK));