mirror of
https://github.com/actions/cache.git
synced 2025-04-21 19:46:46 +00:00
Format default chunk size
This commit is contained in:
parent
23daa0a638
commit
fe7704133d
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ async function uploadFile(
|
|||
const fd = fs.openSync(archivePath, "r");
|
||||
|
||||
const concurrency = Number(process.env["CACHE_UPLOAD_CONCURRENCY"]) ?? 4; // # of HTTP requests in parallel
|
||||
const MAX_CHUNK_SIZE = Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]) ?? 32000000; // 32 MB Chunks
|
||||
const MAX_CHUNK_SIZE = Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]) ?? (32 * 1024 * 1024); // 32 MB Chunks
|
||||
core.debug(`Concurrency: ${concurrency} and Chunk Size: ${MAX_CHUNK_SIZE}`);
|
||||
|
||||
const parallelUploads = [...new Array(concurrency).keys()];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue