mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
enable checksums only if its opted in via feature flag
This commit is contained in:
parent
fa6ee6b850
commit
6d7dc6d183
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue