Skip existing, second iteration: Check the index before uploading (#8531)

Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
konsti 2024-10-31 16:23:12 +01:00 committed by GitHub
parent b52f229862
commit 082259493e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 487 additions and 223 deletions

View file

@ -23,15 +23,6 @@ impl Hasher {
Hasher::Sha512(hasher) => hasher.update(data),
}
}
pub fn finalize(self) -> Vec<u8> {
match self {
Hasher::Md5(hasher) => hasher.finalize().to_vec(),
Hasher::Sha256(hasher) => hasher.finalize().to_vec(),
Hasher::Sha384(hasher) => hasher.finalize().to_vec(),
Hasher::Sha512(hasher) => hasher.finalize().to_vec(),
}
}
}
impl From<HashAlgorithm> for Hasher {