Skip to content

Commit 67cc952

Browse files
authored
Make storage error Send + Sync + 'static (#6)
It is very common in applications that `Err` results are sent across thread boundaries, which the missing bounds complicate unnecessarily. Also makes the error compatible with `anyhow`.
1 parent 360ff2f commit 67cc952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

omnipaxos/src/storage/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ where
9595
}
9696

9797
/// The Result type returned by the storage API.
98-
pub type StorageResult<T> = Result<T, Box<dyn Error>>;
98+
pub type StorageResult<T> = Result<T, Box<dyn Error + Send + Sync + 'static>>;
9999

100100
/// The write operations of the storge implementation.
101101
#[derive(Debug)]

0 commit comments

Comments
 (0)