Increase upload chunks to 16 MiB

This commit is contained in:
toorux committed 2026-10-07 16:43:15 +08:00
1 parent 2c7863dcfb
commit 786c8b7928
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ use std::{
sync::{Arc, Mutex},
time::{Duration, Instant},
};
pub const CHUNK: usize = 4 * 1024 * 1024;
pub const CHUNK: usize = 16 * 1024 * 1024;
#[derive(Clone, Default)]
pub struct Uploads(Arc<Mutex<Option<Upload>>>);
struct Upload {