mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-23 03:45:31 +00:00
Test disabling concurrency
This commit is contained in:
parent
aced43a650
commit
6efe05572d
3 changed files with 36 additions and 32 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue