From d37532960c7927348a0692690c17728fc0b3d2cc Mon Sep 17 00:00:00 2001 From: Avril Date: Wed, 22 Sep 2021 20:34:14 +0100 Subject: [PATCH] Remove debugging prints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TODO: Preserve multi-part extensions as an option? TODO: Command line args: Limiting concurrency, etc. Fortune for lazy-rebuild's current commit: Half blessing − 半吉 --- src/handle.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/handle.rs b/src/handle.rs index aaf8e84..6276167 100644 --- a/src/handle.rs +++ b/src/handle.rs @@ -161,8 +161,6 @@ where C: Future + 'static + Send }; let _h_tx = h_tx; - eprintln!("Got file: {:?}", path); - let mut file = match OpenOptions::new() .read(true) .open(&path).await { @@ -172,7 +170,6 @@ where C: Future + 'static + Send return; }, }; - eprintln!("Opened file {:?}",path); let mut hasher = Sha256::new(); let ring_res = uring_read(&mut file, |buffer| { if ret.is_closed() { @@ -186,11 +183,9 @@ where C: Future + 'static + Send async move { match ring_res { Ok(_n) => { - eprintln!("Proc {} bytes from {:?}", _n, path); let _ = ret.send((path, Ok(hasher.into()))).await; }, Err(e) => { - eprintln!("Proc for {:?} failed: {}", path, e); // To prevent DOSing this task, we do not defer the writing of failed results like we used to. If the stream is full, we wait regardless of the result. let _ = ret.send((path, Err(e))).await;