fix(nbstore): reduce unnecessary sync (#10426)

This commit is contained in:
EYHN
2025-02-25 07:21:46 +00:00
parent abc3f9f23f
commit cafff4e0eb

View File

@@ -272,7 +272,7 @@ export class DocSyncPeer {
jobs: (Job & { type: 'push' })[],
signal?: AbortSignal
) => {
if (this.status.connectedDocs.has(docId)) {
if (this.status.connectedDocs.has(docId) && !this.remote.isReadonly) {
const maxClock = jobs.reduce(
(a, b) => (a.getTime() > b.clock.getTime() ? a : b.clock),
new Date(0)