3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-22 19:35:32 +00:00

Add missing await

This commit is contained in:
Josh Gross 2019-12-17 17:01:57 -05:00
parent 289c5d2518
commit 14055801c2
3 changed files with 3 additions and 3 deletions

View file

@ -1626,7 +1626,7 @@ function uploadFile(restClient, cacheId, archivePath) {
const threads = new Array(concurrency);
core.debug("Awaiting all uploads");
let offset = 0;
Promise.all(threads.map(() => __awaiter(this, void 0, void 0, function* () {
yield Promise.all(threads.map(() => __awaiter(this, void 0, void 0, function* () {
while (offset < fileSize) {
const chunkSize = offset + MAX_CHUNK_SIZE > fileSize ? fileSize - offset : MAX_CHUNK_SIZE;
const start = offset;

2
dist/save/index.js vendored
View file

@ -1626,7 +1626,7 @@ function uploadFile(restClient, cacheId, archivePath) {
const threads = new Array(concurrency);
core.debug("Awaiting all uploads");
let offset = 0;
Promise.all(threads.map(() => __awaiter(this, void 0, void 0, function* () {
yield Promise.all(threads.map(() => __awaiter(this, void 0, void 0, function* () {
while (offset < fileSize) {
const chunkSize = offset + MAX_CHUNK_SIZE > fileSize ? fileSize - offset : MAX_CHUNK_SIZE;
const start = offset;