Skip to content

Commit

Permalink
Fix a bug when writing out a new CAR block
Browse files Browse the repository at this point in the history
  • Loading branch information
DrChat committed Jan 5, 2025
1 parent a82e0dd commit 4ee9bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atrium-repo/src/blockstore/car.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl<R: AsyncRead + AsyncWrite + AsyncSeek + Send + Unpin> AsyncBlockStoreWrite
fc.extend_from_slice(contents);

let mut buf = unsigned_varint::encode::u64_buffer();
unsigned_varint::encode::u64(fc.len() as u64, &mut buf);
let buf = unsigned_varint::encode::u64(fc.len() as u64, &mut buf);

self.storage.write_all(&buf).await?;
let offs = self.storage.stream_position().await?;
Expand Down

0 comments on commit 4ee9bb9

Please sign in to comment.