Skip to content

Commit 5d556c5

Browse files
committed
fix: use oplog version
1 parent c300ec4 commit 5d556c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/loro-adaptors/src/loro-adaptor.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ export class LoroAdaptor implements CrdtDocAdaptor {
133133
}
134134

135135
if (this.initServerVersion && !this.hasReachedServerVersion) {
136-
const comparison = this.doc.version().compare(this.initServerVersion);
136+
const comparison = this.doc
137+
.oplogVersion()
138+
.compare(this.initServerVersion);
137139
if (comparison != null && comparison >= 0) {
138140
this.reachServerVersionPromise.resolve();
139141
}

0 commit comments

Comments
 (0)