Skip to content

Commit 74526d9

Browse files
authored
fix(BUGS-27112): Add Send + Sync to ReplicatedDocumentListener (#6)
1 parent 3a042eb commit 74526d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/replicator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ unsafe extern "C" fn c_replicator_change_listener(
841841
}
842842

843843
/** A callback that notifies you when documents are replicated. */
844-
pub type ReplicatedDocumentListener = Box<dyn Fn(Direction, Vec<ReplicatedDocument>)>;
844+
pub type ReplicatedDocumentListener = Box<dyn Fn(Direction, Vec<ReplicatedDocument>) + Send + Sync>;
845845
unsafe extern "C" fn c_replicator_document_change_listener(
846846
context: *mut ::std::os::raw::c_void,
847847
_replicator: *mut CBLReplicator,

0 commit comments

Comments
 (0)