From 8c3706df11abadafec89ef0546d20c79d31ec92b Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Mon, 20 Jan 2025 18:22:35 -0600 Subject: increase number of concurrent tasks --- src/launcher/download.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/launcher/download.rs') 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> 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) -> 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 } -- cgit v1.2.3-70-g09d2