Skip to content

Commit

Permalink
hash-db no send-sync (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoscout authored May 14, 2024
1 parent 47f0dfe commit c3348e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hash-db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub trait Hasher: Sync + Send {
/// Trait modelling a plain datastore whose key is a fixed type.
/// The caller should ensure that a key only corresponds to
/// one value.
pub trait PlainDB<K, V>: Send + Sync + AsPlainDB<K, V> {
pub trait PlainDB<K, V>: AsPlainDB<K, V> {
/// Look up a given hash into the bytes that hash to it, returning None if the
/// hash is not known.
fn get(&self, key: &K) -> Option<V>;
Expand Down Expand Up @@ -125,7 +125,7 @@ impl<'a, K, V> PlainDBRef<K, V> for &'a mut dyn PlainDB<K, V> {
}

/// Trait modelling datastore keyed by a hash defined by the `Hasher`.
pub trait HashDB<H: Hasher, T>: Send + Sync + AsHashDB<H, T> {
pub trait HashDB<H: Hasher, T>: AsHashDB<H, T> {
/// Look up a given hash into the bytes that hash to it, returning None if the
/// hash is not known.
fn get(&self, key: &H::Out, prefix: Prefix) -> Option<T>;
Expand Down

0 comments on commit c3348e4

Please sign in to comment.