From 4d314ba5b7add6b66fce08fd988c268b2eb04610 Mon Sep 17 00:00:00 2001 From: Arshia Ghafoori Date: Fri, 31 May 2024 11:34:09 +0330 Subject: [PATCH] Reduce package upload chunk size to make the progress bar smoother --- lib/cli/src/commands/package/common/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/src/commands/package/common/mod.rs b/lib/cli/src/commands/package/common/mod.rs index fb56eada86c..cbc5fd61284 100644 --- a/lib/cli/src/commands/package/common/mod.rs +++ b/lib/cli/src/commands/package/common/mod.rs @@ -124,7 +124,7 @@ pub(super) async fn upload( .tick_strings(&["✶", "✸", "✹", "✺", "✹", "✷", "✶"])); tracing::info!("webc is {total_bytes} bytes long"); - let chunk_size = (total_bytes / 20).min(10485760); + let chunk_size = 8 * 1024; let stream = futures::stream::unfold(0, move |offset| { let pb = pb.clone();