diff options
| author | 2025-01-20 18:22:35 -0600 | |
|---|---|---|
| committer | 2025-01-20 18:22:35 -0600 | |
| commit | 8c3706df11abadafec89ef0546d20c79d31ec92b (patch) | |
| tree | 6370b36d566b54969f7d6de9fc5a0779615b7617 /src/launcher/download.rs | |
| parent | it runs the game (diff) | |
increase number of concurrent tasks
Diffstat (limited to 'src/launcher/download.rs')
| -rw-r--r-- | src/launcher/download.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/launcher/download.rs b/src/launcher/download.rs index f5469d8..4eedba5 100644 --- a/src/launcher/download.rs +++ b/src/launcher/download.rs @@ -87,7 +87,7 @@ impl<'j, T: Download> PhaseDownloadError<'j, T> { impl<'j, T: Download + 'j, I: Iterator<Item = &'j mut T>> MultiDownloader<'j, T, I> { pub fn new(jobs: I) -> MultiDownloader<'j, T, I> { - Self::with_concurrent(jobs, 8) + Self::with_concurrent(jobs, 24) } pub fn with_concurrent(jobs: I, n: usize) -> MultiDownloader<'j, T, I> { @@ -282,7 +282,7 @@ pub async fn verify_files(files: impl Iterator<Item = &mut VerifiedDownload>) -> debug!("Verifying library {}", dl.get_path().display()); util::verify_file(dl.get_path(), dl.get_expect_size(), dl.get_expect_sha1()).await })) - .try_buffer_unordered(8) + .try_buffer_unordered(32) .try_fold((), |_, _| async {Ok(())}) .await } |
