fix(cli): log on file path hash matches actual completion

This commit is contained in:
Tomáš Mládek 2024-06-30 12:03:45 +02:00
parent cb7e57c415
commit 1efd45806a

View file

@ -38,6 +38,7 @@ pub fn hash_at_path<P: AsRef<Path>>(path: P) -> anyhow::Result<UpMultihash> {
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)
}