pull,ui,report: render the pull downloads as byte progress
CI / build (push) Successful in 6m18s
CI / test (push) Skipped
CI / publish (push) Skipped
CI / snap (push) Successful in 11m51s

The pull downloads reported through the plain count port only because
byte_progress landed on main after the branch was cut. PullView now
implements it with a byte-counter template in the transfer-style
family (same shape, {bytes}/{total_bytes} counters, human-formatted by
indicatif), downloads emit through it, and the trait doc lists the
event among the ones the pull flow emits — un-duplicating the merged
'message, progress and progress' sentence.
This commit is contained in:
2026-10-03 02:28:22 +02:00
parent a9f535bce5
commit ae679f29d9
3 changed files with 24 additions and 3 deletions
+1 -2
View File
@@ -503,8 +503,7 @@ async fn download_file_checksum_once(
buffer.extend_from_slice(&chunk);
if let Some(total) = total_size {
let index = min(buffer.len(), total as usize);
view.progress("Downloading...", index, total as usize);
view.byte_progress("Downloading...", min(buffer.len() as u64, total), total);
}
}