Optimize directory sync performance

This commit is contained in:
Gregory Schier
2025-01-05 10:56:40 -08:00
parent 40adce921b
commit 17fdd608d1
7 changed files with 113 additions and 96 deletions

View File

@@ -11,10 +11,11 @@ export const calculateSync = async (workspace: Workspace) => {
});
};
export const applySync = async (workspace: Workspace, ops: SyncOp[]) => {
console.log('Applying sync', ops);
export const applySync = async (workspace: Workspace, syncOps: SyncOp[]) => {
console.log('Applying sync', syncOps);
return invoke<void>('plugin:yaak-sync|apply', {
workspaceId: workspace.id,
dir: workspace.settingSyncDir,
syncOps: syncOps
});
};