mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-22 21:07:43 +00:00
chore: use cached diff calc
This commit is contained in:
parent
35854743f0
commit
e25b93c491
1 changed files with 1 additions and 1 deletions
|
@ -1082,7 +1082,7 @@ impl LoroDoc {
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut state = self.state.lock().unwrap();
|
let mut state = self.state.lock().unwrap();
|
||||||
let mut calc = DiffCalculator::new(false);
|
let mut calc = self.diff_calculator.lock().unwrap();
|
||||||
for &i in frontiers.iter() {
|
for &i in frontiers.iter() {
|
||||||
if !oplog.dag.contains(i) {
|
if !oplog.dag.contains(i) {
|
||||||
drop(oplog);
|
drop(oplog);
|
||||||
|
|
Loading…
Reference in a new issue