aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bin/tp.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/bin/tp.rs b/src/bin/tp.rs
index 9a69832..53372b9 100644
--- a/src/bin/tp.rs
+++ b/src/bin/tp.rs
@@ -387,13 +387,7 @@ fn main() {
// ── Chunked put ─────────────────────────
let n_chunks =
(data.len() + CHUNK_SIZE - 1) / CHUNK_SIZE;
- if verbose {
- eprintln!(
- "chunked: {} bytes, {} chunks",
- data.len(),
- n_chunks,
- );
- }
+ eprint!("sending {n_chunks} chunks...");
// Send each chunk via PUTC
let mut chunk_hashes: Vec<Vec<u8>> = Vec::new();
@@ -408,9 +402,7 @@ fn main() {
eprintln!("error: invalid hash from daemon");
std::process::exit(1);
});
- if verbose {
- eprintln!("chunk {}/{}: {hash_b58}", i + 1, n_chunks);
- }
+ eprint!("\rsending {}/{n_chunks} chunks...", i + 1);
chunk_hashes.push(hash);
}
@@ -423,6 +415,8 @@ fn main() {
manifest.extend_from_slice(hash);
}
+ eprintln!(" done");
+
let req = format!(
"PUTM {} {}\n",
ttl_secs,