Skip to content

Commit

Permalink
make PersistenceProvider Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Aug 30, 2024
1 parent 5cfebf3 commit 9c6ab8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/persistence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ impl PersistenceError {
pub fn with<E: Error + Send + 'static>(e: E) -> Self { Self(Box::new(e)) }
}

pub trait PersistenceProvider<T>: Send + Debug {
pub trait PersistenceProvider<T>: Send + Sync + Debug {
fn load(&self) -> Result<T, PersistenceError>;
fn store(&self, object: &T) -> Result<(), PersistenceError>;
}
Expand Down

0 comments on commit 9c6ab8f

Please sign in to comment.