summaryrefslogtreecommitdiffstats
path: root/src/launcher/assets.rs
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-01-20 18:22:35 -0600
committerLibravatar bigfoot547 <[email protected]>2025-01-20 18:22:35 -0600
commit8c3706df11abadafec89ef0546d20c79d31ec92b (patch)
tree6370b36d566b54969f7d6de9fc5a0779615b7617 /src/launcher/assets.rs
parentit runs the game (diff)
increase number of concurrent tasks
Diffstat (limited to 'src/launcher/assets.rs')
-rw-r--r--src/launcher/assets.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/launcher/assets.rs b/src/launcher/assets.rs
index 271f79e..cd75d0d 100644
--- a/src/launcher/assets.rs
+++ b/src/launcher/assets.rs
@@ -229,7 +229,7 @@ impl AssetRepository {
if self.online {
info!("Downloading {} asset objects...", downloads.len());
let client = Client::new();
- MultiDownloader::with_concurrent(downloads.iter_mut(), 16).perform(&client).await
+ MultiDownloader::with_concurrent(downloads.iter_mut(), 32).perform(&client).await
.inspect_err(|e| warn!("asset download failed: {e}"))
.try_fold((), |_, _| async {Ok(())})
.await
@@ -288,7 +288,7 @@ impl AssetRepository {
}
}
})
- .try_for_each_concurrent(16, |(object, obj_path)| async move {
+ .try_for_each_concurrent(32, |(object, obj_path)| async move {
if let Some(parent) = obj_path.parent() {
fs::create_dir_all(parent).await
.inspect_err(|e| debug!("Error creating directory for asset object {}: {e}", object.name))