From 7de65118c2043395180f23c8b6a65683be1114e1 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Tue, 17 Sep 2024 08:59:59 +0900 Subject: [PATCH] feat: default size back to 1mb --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5e566d589..0115aaa0a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,8 +126,8 @@ pub use xor_name; /// The minimum size (before compression) of data to be self-encrypted, defined as 3B. pub const MIN_ENCRYPTABLE_BYTES: usize = 3 * MIN_CHUNK_SIZE; -/// The maximum size (before compression) of an individual chunk of a file, defined as 500kiB. -pub const MAX_CHUNK_SIZE: usize = 512 * 1024; +/// The maximum size (before compression) of an individual chunk of a file, defined as 1024kiB. +pub const MAX_CHUNK_SIZE: usize = 1024 * 1024; /// The minimum size (before compression) of an individual chunk of a file, defined as 1B. pub const MIN_CHUNK_SIZE: usize = 1; /// Controls the compression-speed vs compression-density tradeoffs. The higher the quality, the