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

This commit is contained in:
Arrowana 2021-12-28 11:04:48 +11:00 committed by Michael Vines
parent 70f6aff07f
commit a1912f8400
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,9 @@ fn download_to_temp(
let temp_dir = TempDir::new()?;
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();
progress_bar.set_message(format!("{}Downloading...", TRUCK));