concurrency should not influence the sync
This commit is contained in:
parent
085d8448d2
commit
0fcedf397f
28
src/sync.ts
28
src/sync.ts
@ -1427,34 +1427,6 @@ export const doActualSync = async (
|
||||
log.debug(`finish syncing extra data firstly`);
|
||||
|
||||
log.debug(`concurrency === ${concurrency}`);
|
||||
if (concurrency === 1) {
|
||||
// run everything in sequence
|
||||
// good old way
|
||||
for (let i = 0; i < sortedKeys.length; ++i) {
|
||||
const key = sortedKeys[i];
|
||||
const val = mixedStates[key];
|
||||
|
||||
log.debug(`start syncing "${key}" with plan ${JSON.stringify(val)}`);
|
||||
|
||||
if (callbackSyncProcess !== undefined) {
|
||||
await callbackSyncProcess(i, totalCount, key, val.decision);
|
||||
}
|
||||
|
||||
await dispatchOperationToActual(
|
||||
key,
|
||||
vaultRandomID,
|
||||
val,
|
||||
client,
|
||||
db,
|
||||
vault,
|
||||
localDeleteFunc,
|
||||
password
|
||||
);
|
||||
log.debug(`finished ${key}`);
|
||||
}
|
||||
|
||||
return; // shortcut return, avoid too many nests below
|
||||
}
|
||||
|
||||
const { folderCreationOps, deletionOps, uploadDownloads, realTotalCount } =
|
||||
splitThreeSteps(syncPlan, sortedKeys);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user