Revert "Test disabling concurrency"

This reverts commit 6efe05572d.
This commit is contained in:
Dave Hadka 2020-05-08 15:59:00 -04:00
parent 6efe05572d
commit 25b1a139de
3 changed files with 32 additions and 36 deletions

View File

@ -2403,8 +2403,7 @@ function uploadFile(httpClient, cacheId, archivePath) {
core.debug("Awaiting all uploads");
let offset = 0;
try {
// await Promise.all(
// parallelUploads.map(async () => {
yield Promise.all(parallelUploads.map(() => __awaiter(this, void 0, void 0, function* () {
while (offset < fileSize) {
const chunkSize = Math.min(fileSize - offset, MAX_CHUNK_SIZE);
const start = offset;
@ -2417,8 +2416,7 @@ function uploadFile(httpClient, cacheId, archivePath) {
autoClose: false
}), start, end);
}
// })
// );
})));
}
finally {
fs.closeSync(fd);

6
dist/save/index.js vendored
View File

@ -2403,8 +2403,7 @@ function uploadFile(httpClient, cacheId, archivePath) {
core.debug("Awaiting all uploads");
let offset = 0;
try {
// await Promise.all(
// parallelUploads.map(async () => {
yield Promise.all(parallelUploads.map(() => __awaiter(this, void 0, void 0, function* () {
while (offset < fileSize) {
const chunkSize = Math.min(fileSize - offset, MAX_CHUNK_SIZE);
const start = offset;
@ -2417,8 +2416,7 @@ function uploadFile(httpClient, cacheId, archivePath) {
autoClose: false
}), start, end);
}
// })
// );
})));
}
finally {
fs.closeSync(fd);

View File

@ -342,8 +342,8 @@ async function uploadFile(
let offset = 0;
try {
// await Promise.all(
// parallelUploads.map(async () => {
await Promise.all(
parallelUploads.map(async () => {
while (offset < fileSize) {
const chunkSize = Math.min(
fileSize - offset,
@ -367,8 +367,8 @@ async function uploadFile(
end
);
}
// })
// );
})
);
} finally {
fs.closeSync(fd);
}