Skip to content

Commit

Permalink
Reduce package upload chunk size to make the progress bar smoother
Browse files Browse the repository at this point in the history
  • Loading branch information
Arshia001 committed May 31, 2024
1 parent 75258cd commit 4d314ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/src/commands/package/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4d314ba

Please sign in to comment.