We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bdfc0c commit ee9ba05Copy full SHA for ee9ba05
services/dune/src/s3/client.rs
@@ -94,7 +94,7 @@ impl Storage for S3Storage {
94
let data = data.clone();
95
async move {
96
#[allow(clippy::identity_op)]
97
- const LARGE_FILE_THRESHOLD: usize = 1 * 1024 * 1024; // 1MB
+ const LARGE_FILE_THRESHOLD: usize = 100 * 1024 * 1024; // 100MB
98
let result = if data.len() >= LARGE_FILE_THRESHOLD {
99
tracing::debug!(
100
"Uploading file to S3 using multipart_upload"
@@ -209,7 +209,7 @@ impl S3Storage {
209
key: &str,
210
data: Vec<u8>,
211
) -> Result<(), StorageError> {
212
- const CHUNK_SIZE: usize = 5 * 1024 * 1024; // 5MB chunks
+ const CHUNK_SIZE: usize = 100 * 1024 * 1024; // 100MB chunks
213
214
// Create multipart upload
215
let create_multipart = self
0 commit comments