From 1efd45806ac7a0dcfb2d1972030891cc57122a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 30 Jun 2024 12:03:45 +0200 Subject: [PATCH] fix(cli): log on file path hash matches actual completion --- db/src/util.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/src/util.rs b/db/src/util.rs index 5dce498..96ee5d3 100644 --- a/db/src/util.rs +++ b/db/src/util.rs @@ -38,6 +38,7 @@ pub fn hash_at_path>(path: P) -> anyhow::Result { let path = path.as_ref(); trace!("Hashing {:?}...", path); let fbuffer = FileBuffer::open(path)?; + let hash = upend_base::hash::sha256hash(&fbuffer)?; trace!("Finished hashing {:?}...", path); - Ok(upend_base::hash::sha256hash(&fbuffer)?) + Ok(hash) }