diff options
| author | murilo ijanc | 2026-03-27 22:00:56 -0300 |
|---|---|---|
| committer | murilo ijanc | 2026-03-27 22:00:56 -0300 |
| commit | b914f856d6d907b9c509e79382ee25ea5b1b2f01 (patch) | |
| tree | 0677a237140c99b9d3f6cb4a55ee5dc4f0a03177 /src/bin/tp.rs | |
| parent | b4228aa74f6ef4720167236cb072b84d94aa6d2a (diff) | |
| download | tesseras-paste-b914f856d6d907b9c509e79382ee25ea5b1b2f01.tar.gz | |
Diffstat (limited to 'src/bin/tp.rs')
| -rw-r--r-- | src/bin/tp.rs | 14 |
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, |