reduce copy concurrency to keep most providers happy

This commit is contained in:
Girish Ramakrishnan
2020-12-14 17:26:44 -08:00
parent f5ed17e3d8
commit 0723b7d672

View File

@@ -288,7 +288,7 @@ function copy(apiConfig, oldFilePath, newFilePath) {
}
ranges.push({ startBytes: cur, endBytes: entry.size-1 });
async.eachOfLimit(ranges, 5, function copyChunk(range, index, iteratorDone) {
async.eachOfLimit(ranges, 3, function copyChunk(range, index, iteratorDone) {
const partCopyParams = {
Bucket: apiConfig.bucket,
Key: path.join(newFilePath, relativePath),