mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-02 21:02:37 +00:00
Skip existing, second iteration: Check the index before uploading (#8531)
Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
parent
b52f229862
commit
082259493e
14 changed files with 487 additions and 223 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue