mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-23 03:45:31 +00:00
Add missing await
This commit is contained in:
parent
289c5d2518
commit
14055801c2
3 changed files with 3 additions and 3 deletions
|
@ -185,7 +185,7 @@ async function uploadFile(restClient: RestClient, cacheId: number, archivePath:
|
|||
const threads = new Array(concurrency);
|
||||
core.debug("Awaiting all uploads");
|
||||
let offset = 0;
|
||||
Promise.all(threads.map(async () => { // This might not work cause something something closures
|
||||
await Promise.all(threads.map(async () => { // This might not work cause something something closures
|
||||
while (offset < fileSize) {
|
||||
const chunkSize = offset + MAX_CHUNK_SIZE > fileSize ? fileSize - offset : MAX_CHUNK_SIZE;
|
||||
const start = offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue