Finish newer forge versions

This commit is contained in:
Jai A
2021-10-24 14:25:24 -07:00
parent 673658dfd2
commit d8332a27e5
8 changed files with 266 additions and 109 deletions

View File

@@ -90,7 +90,7 @@ pub async fn download_file_mirrors(
pub async fn download_file(url: &str, sha1: Option<&str>) -> Result<bytes::Bytes, Error> {
let client = reqwest::Client::builder()
.tcp_keepalive(Some(std::time::Duration::from_secs(10)))
.timeout(std::time::Duration::from_secs(30))
.timeout(std::time::Duration::from_secs(15))
.build()
.map_err(|err| Error::FetchError {
inner: err,