File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1151,7 +1151,11 @@ SyncOptions Folder::initializeSyncOptions() const
1151
1151
opt._confirmExternalStorage = cfgFile.confirmExternalStorage ();
1152
1152
opt._moveFilesToTrash = cfgFile.moveToTrash ();
1153
1153
opt._vfs = _vfs;
1154
- opt._parallelNetworkJobs = account->isHttp2Supported () ? 20 : 6 ;
1154
+
1155
+ const auto capsMaxConcurrentChunkUploads = account->capabilities ().maxConcurrentChunkUploads ();
1156
+ opt._parallelNetworkJobs = capsMaxConcurrentChunkUploads > 0
1157
+ ? capsMaxConcurrentChunkUploads
1158
+ : account->isHttp2Supported () ? 20 : 6 ;
1155
1159
1156
1160
// Chunk V2: Size of chunks must be between 5MB and 5GB, except for the last chunk which can be smaller
1157
1161
const auto cfgMinChunkSize = cfgFile.minChunkSize ();
You can’t perform that action at this time.
0 commit comments