upload and download in parallel

This commit is contained in:
fyears
2022-03-06 18:12:49 +08:00
parent 3dfe215103
commit 76e61b6ebf
5 changed files with 156 additions and 32 deletions
+2
View File
@@ -54,6 +54,7 @@ const DEFAULT_SETTINGS: RemotelySavePluginSettings = {
vaultRandomID: "",
autoRunEveryMilliseconds: -1,
agreeToUploadExtraMetadata: false,
concurrency: 5,
};
interface OAuth2Info {
@@ -230,6 +231,7 @@ export default class RemotelySavePlugin extends Plugin {
deletions,
(key: string) => self.trash(key),
this.settings.password,
this.settings.concurrency,
(i: number, totalCount: number, pathName: string, decision: string) =>
self.setCurrSyncMsg(i, totalCount, pathName, decision)
);