test: test failed if use non-cached diff calc

This commit is contained in:
Zixuan Chen 2024-09-23 22:22:22 +08:00
parent 082a9c1ab8
commit 0635f0a036
No known key found for this signature in database

View file

@ -1166,7 +1166,7 @@ impl LoroDoc {
}
let mut state = self.state.lock().unwrap();
let mut calc = self.diff_calculator.lock().unwrap();
let mut calc = DiffCalculator::new(false);
for &i in frontiers.iter() {
if !oplog.dag.contains(i) {
drop(oplog);