Improve network usage for small text changes #166

Merged
schmelczer merged 9 commits from asch/compact-reconcile into main 2025-11-16 22:10:22 +00:00
Showing only changes of commit fc05bb5145 - Show all commits

Remove clutter

Andras Schmelczer 2025-11-16 21:01:02 +00:00

View file

@ -112,7 +112,7 @@ export class SyncService {
parentVersionId: VaultUpdateId; parentVersionId: VaultUpdateId;
documentId: DocumentId; documentId: DocumentId;
relativePath: RelativePath; relativePath: RelativePath;
content: (number | string | bigint)[]; content: (number | string)[];
}): Promise<DocumentUpdateResponse> { }): Promise<DocumentUpdateResponse> {
return this.withRetries(async () => { return this.withRetries(async () => {
this.logger.debug( this.logger.debug(
@ -122,12 +122,7 @@ export class SyncService {
const request: UpdateTextDocumentVersion = { const request: UpdateTextDocumentVersion = {
parentVersionId, parentVersionId,
relativePath, relativePath,
content: content.map((c) => { content
if (typeof c === "bigint") {
return Number(c);
}
return c;
})
}; };
const response = await this.client( const response = await this.client(