This commit is contained in:
Lev Kokotov
2022-02-08 17:08:17 -08:00
parent 95c2d593cc
commit edf6a69ca4
7 changed files with 22 additions and 70 deletions

View File

@@ -14,7 +14,7 @@ impl Sharder {
/// Use SHA1 to pick a shard for the key. The key can be anything,
/// including an int or a string.
pub fn sha1(&self, key: &[u8]) -> usize {
pub fn _sha1(&self, key: &[u8]) -> usize {
let mut hasher = Sha1::new();
hasher.update(key);
let result = hasher.finalize_reset();