Skip to content

Commit

Permalink
Fix loading data from disk to cache on startup (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
numinnex authored Mar 4, 2024
1 parent 9ddbe4a commit f73e367
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "server"
version = "0.2.5"
version = "0.2.6"
edition = "2021"
build = "src/build.rs"

Expand Down
1 change: 1 addition & 0 deletions server/src/streaming/segments/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ async fn load_messages_by_size(

let payload_len = batch_length as usize;
let mut payload = BytesMut::with_capacity(payload_len);
payload.put_bytes(0, payload_len);
reader
.read_exact(&mut payload)
.await
Expand Down

0 comments on commit f73e367

Please sign in to comment.