From ad548a4aad12acc4678574350555538ec4bcbb72 Mon Sep 17 00:00:00 2001 From: ph0llux Date: Sat, 7 Oct 2023 22:56:12 +0200 Subject: [PATCH] fixed multi segmentation setup --- src/lib/io/zffwriter.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/io/zffwriter.rs b/src/lib/io/zffwriter.rs index 7cac9dc..c93da3c 100644 --- a/src/lib/io/zffwriter.rs +++ b/src/lib/io/zffwriter.rs @@ -584,7 +584,6 @@ impl ZffWriter { self.current_object_encoder.get_encoded_header().len() + segment_footer.encode_directly().len() + target_chunk_size) > target_segment_size as usize { - return Err(ZffError::new(ZffErrorKind::SegmentSizeToSmall, "")); }; @@ -772,7 +771,6 @@ impl ZffWriter { //adds the seek value to the written bytes extend = false; current_offset = seek_value + written_bytes; - seek_value = current_offset; current_offset }, Err(e) => match e.get_kind() {