Skip to content

Commit

Permalink
chore: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantJoshi00 committed Oct 28, 2023
1 parent 40ce145 commit 6755d82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion src/crypto/sha.rs
Expand Up @@ -6,7 +6,7 @@ impl super::Encode<Vec<u8>, Vec<u8>> for Sha512 {
type ReturnType<T> = error_stack::Result<T, error::CryptoError>;

fn encode(&self, input: Vec<u8>) -> Self::ReturnType<Vec<u8>> {
let digest = ring::digest::digest(&ring::digest::SHA256, &input);
let digest = ring::digest::digest(&ring::digest::SHA512, &input);
Ok(digest.as_ref().to_vec())
}
}
9 changes: 0 additions & 9 deletions src/storage/db.rs
Expand Up @@ -166,13 +166,6 @@ impl LockerInterface for Storage {
error => Err(error).change_context(error::StorageError::FindError),
},
}
// .map_err(error_stack::Report::from)
// .change_context(error::StorageError::FindError)
// .and_then(|inner: types::LockerInner| {
// inner
// .decrypt(key)
// .change_context(error::StorageError::DecryptionError)
// })
}

async fn insert_or_get_from_locker(
Expand Down Expand Up @@ -260,8 +253,6 @@ impl super::HashInterface for Storage {
error => Err(error).change_context(error::StorageError::FindError),
},
}
// .map_err(error_stack::Report::from)
// .change_context(error::StorageError::FindError)
}
async fn insert_hash(
&self,
Expand Down

0 comments on commit 6755d82

Please sign in to comment.