diff --git a/src/backup/data_blob_reader.rs b/src/backup/data_blob_reader.rs index 62caa5ce..d6fc7865 100644 --- a/src/backup/data_blob_reader.rs +++ b/src/backup/data_blob_reader.rs @@ -19,6 +19,10 @@ pub struct DataBlobReader { state: BlobReaderState, } +// zstd_safe::DCtx is not sync but we are, since +// the only public interface is on mutable reference +unsafe impl Sync for DataBlobReader {} + impl DataBlobReader { pub fn new(mut reader: R, config: Option>) -> Result {