File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -748,7 +748,7 @@ pub struct Replicator {
748
748
pub headers : Option < MutableDict > ,
749
749
pub context : Option < Box < ReplicationConfigurationContext > > ,
750
750
change_listeners : ReplicatorsListeners < ReplicatorChangeListener > ,
751
- document_listeners : ReplicatorsListeners < ReplicatedDocumentListener > ,
751
+ pub document_listeners : ReplicatorsListeners < ReplicatedDocumentListener > ,
752
752
}
753
753
754
754
impl CblRef for Replicator {
@@ -1120,7 +1120,7 @@ unsafe extern "C" fn c_replicator_change_listener(
1120
1120
}
1121
1121
1122
1122
/** A callback that notifies you when documents are replicated. */
1123
- pub type ReplicatedDocumentListener = Box < dyn Fn ( Direction , Vec < ReplicatedDocument > ) > ;
1123
+ pub type ReplicatedDocumentListener = Box < dyn Fn ( Direction , Vec < ReplicatedDocument > ) + Send + Sync > ;
1124
1124
unsafe extern "C" fn c_replicator_document_change_listener (
1125
1125
context : * mut :: std:: os:: raw:: c_void ,
1126
1126
_replicator : * mut CBLReplicator ,
You can’t perform that action at this time.
0 commit comments