Skip to content

Commit 14267fa

Browse files
authored
fix ability to disable block checksumming (#55)
* fix to disable block checksumming
1 parent aa3054e commit 14267fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/encoder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl EncoderBuilder {
3939
block_size: BlockSize::Default,
4040
block_mode: BlockMode::Linked,
4141
checksum: ContentChecksum::ChecksumEnabled,
42-
block_checksum: BlockChecksum::NoBlockChecksum,
42+
block_checksum: BlockChecksum::BlockChecksumEnabled,
4343
level: 0,
4444
auto_flush: false,
4545
favor_dec_speed: false,
@@ -99,7 +99,7 @@ impl EncoderBuilder {
9999
content_size: self.content_size.clone(),
100100
frame_type: FrameType::Frame,
101101
dict_id: 0,
102-
block_checksum_flag: BlockChecksum::BlockChecksumEnabled,
102+
block_checksum_flag: self.block_checksum.clone(),
103103
},
104104
compression_level: self.level,
105105
auto_flush: if self.auto_flush { 1 } else { 0 },

0 commit comments

Comments
 (0)