Skip to content

Commit 5ad0f7b

Browse files
committed
fix pull hook
1 parent c696cc0 commit 5ad0f7b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

couchbase-lite/src/replicator.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ impl Replicator {
173173
error!("Replicator::call_after_pull catch panic aborting");
174174
panic!();
175175
}
176-
Ok(result) => result.as_str().as_flslice(),
176+
Ok(result) => {
177+
println!("after_pull hook returned {:?}", result);
178+
let copy = FLSlice_Copy(result.as_str().as_flslice());
179+
copy.as_flslice()
180+
}
177181
}
178182
}
179183

0 commit comments

Comments
 (0)