Constant tvix_castore::import::blobs::CONCURRENT_BLOB_UPLOAD_THRESHOLD

source ยท
const CONCURRENT_BLOB_UPLOAD_THRESHOLD: u32 = _; // 1_048_576u32
Expand description

Files smaller than this threshold, in bytes, are uploaded to the BlobService in the background.

This is a u32 since we acquire a weighted semaphore using the size of the blob. Semaphore::acquire_many_owned takes a u32, so we need to ensure the size of the blob can be represented using a u32 and will not cause an overflow.