Skip to content

Commit

Permalink
Update src/store/writer.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Masurel <paul@quickwit.io>
  • Loading branch information
PSeitz and fulmicoton committed Jun 23, 2022
1 parent c3220be commit ad76d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl StoreWriter {
/// of documents.
pub fn store_bytes(&mut self, serialized_document: &[u8]) -> io::Result<()> {
let doc_num_bytes = serialized_document.len();
VInt(doc_num_bytes as u64).serialize(&mut self.current_block)?;
VInt(doc_num_bytes as u64).serialize_into_vec(&mut self.current_block);
self.current_block.extend_from_slice(serialized_document);
self.num_docs_in_current_block += 1;
self.check_flush_block()?;
Expand Down

0 comments on commit ad76d11

Please sign in to comment.