mirror of
https://github.com/zhaofengli/attic.git
synced 2024-12-14 11:57:30 +00:00
Merge pull request #42 from DarkKirb/increase-nar-info-size-limit
Increase narinfo size limit to 1MiB
This commit is contained in:
commit
d918f68c29
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ use crate::database::{AtticDatabase, ChunkGuard, NarGuard};
|
||||||
const CONCURRENT_CHUNK_UPLOADS: usize = 10;
|
const CONCURRENT_CHUNK_UPLOADS: usize = 10;
|
||||||
|
|
||||||
/// The maximum size of the upload info JSON.
|
/// 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>;
|
type CompressorFn<C> = Box<dyn FnOnce(C) -> Box<dyn AsyncRead + Unpin + Send> + Send>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue