Skip to content

Commit 2c3191c

Browse files
committed
Merge branch 'main' into 3.1.x
2 parents 78d3a5e + 1727bc1 commit 2c3191c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/replicator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ pub struct Replicator {
748748
pub headers: Option<MutableDict>,
749749
pub context: Option<Box<ReplicationConfigurationContext>>,
750750
change_listeners: ReplicatorsListeners<ReplicatorChangeListener>,
751-
document_listeners: ReplicatorsListeners<ReplicatedDocumentListener>,
751+
pub document_listeners: ReplicatorsListeners<ReplicatedDocumentListener>,
752752
}
753753

754754
impl CblRef for Replicator {
@@ -1120,7 +1120,7 @@ unsafe extern "C" fn c_replicator_change_listener(
11201120
}
11211121

11221122
/** 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>;
11241124
unsafe extern "C" fn c_replicator_document_change_listener(
11251125
context: *mut ::std::os::raw::c_void,
11261126
_replicator: *mut CBLReplicator,

0 commit comments

Comments
 (0)