|
|
|
@ -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);
|
|
|
|
|