gcs: use copy concurrency

This commit is contained in:
Girish Ramakrishnan
2020-09-28 22:02:48 -07:00
parent 9536b42244
commit 1da2450b10
2 changed files with 3 additions and 1 deletions

View File

@@ -174,7 +174,8 @@ function copy(apiConfig, oldFilePath, newFilePath) {
});
}
const batchSize = 1000, concurrency = 10;
const batchSize = 1000;
const concurrency = apiConfig.copyConcurrency || 10;
var total = 0;
listDir(apiConfig, oldFilePath, batchSize, function (entries, done) {