feat: r96util

This commit is contained in:
2025-02-10 20:48:40 +00:00
parent 3b4bb866ab
commit b6bd190252
3 changed files with 89 additions and 1 deletions

View File

@ -232,7 +232,7 @@ impl FileStore {
Ok((out_path, n, hash))
}
async fn hash_file(p: &PathBuf) -> Result<Vec<u8>, Error> {
pub async fn hash_file(p: &PathBuf) -> Result<Vec<u8>, Error> {
let mut file = File::open(p).await?;
let mut hasher = Sha256::new();
let mut buf = [0; 4096];