Merge pull request #42 from DarkKirb/increase-nar-info-size-limit
Increase narinfo size limit to 1MiB
This commit is contained in:
commit
d918f68c29
|
@ -55,7 +55,9 @@ use crate::database::{AtticDatabase, ChunkGuard, NarGuard};
|
|||
const CONCURRENT_CHUNK_UPLOADS: usize = 10;
|
||||
|
||||
/// The maximum size of the upload info JSON.
|
||||
const MAX_NAR_INFO_SIZE: usize = 64 * 1024; // 64 KiB
|
||||
///
|
||||
/// TODO: Make this configurable
|
||||
const MAX_NAR_INFO_SIZE: usize = 1 * 1024 * 1024; // 1 MiB
|
||||
|
||||
type CompressorFn<C> = Box<dyn FnOnce(C) -> Box<dyn AsyncRead + Unpin + Send> + Send>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue