Skip to content

Commit

Permalink
fixed multi segmentation setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ph0llux committed Oct 7, 2023
1 parent f3a6e6c commit ad548a4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib/io/zffwriter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,6 @@ impl<R: Read> ZffWriter<R> {
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, ""));
};

Expand Down Expand Up @@ -772,7 +771,6 @@ impl<R: Read> ZffWriter<R> {
//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() {
Expand Down

0 comments on commit ad548a4

Please sign in to comment.