gha-cache: Increase chunk size

This matches the behavior in the official toolkit:

<457303960f/packages/cache/src/options.ts (L6-L19)>
This commit is contained in:
Zhaofeng Li 2023-05-22 16:00:34 -06:00
parent d1e56e0796
commit fb5c42e7c8

View file

@ -40,10 +40,10 @@ const DEFAULT_VERSION: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_P
/// The chunk size in bytes.
///
/// We greedily read this much from the input stream at a time.
const CHUNK_SIZE: usize = 8 * 1024 * 1024;
const CHUNK_SIZE: usize = 32 * 1024 * 1024;
/// The number of chunks to upload at the same time.
const MAX_CONCURRENCY: usize = 5;
const MAX_CONCURRENCY: usize = 4;
type Result<T> = std::result::Result<T, Error>;