mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-06 00:34:23 +01:00
enable checksums only if its opted in via feature flag
This commit is contained in:
@@ -48,8 +48,12 @@ impl IOContext {
|
||||
|
||||
impl Default for IOContext {
|
||||
fn default() -> Self {
|
||||
#[cfg(feature = "checksum")]
|
||||
let encryption_or_checksum = EncryptionOrChecksum::Checksum(ChecksumContext::default());
|
||||
#[cfg(not(feature = "checksum"))]
|
||||
let encryption_or_checksum = EncryptionOrChecksum::None;
|
||||
Self {
|
||||
encryption_or_checksum: EncryptionOrChecksum::Checksum(ChecksumContext::default()),
|
||||
encryption_or_checksum,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user