Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
zehiko committed Oct 21, 2024
1 parent 0d658fe commit c3388f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/store/re_remote_store_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ re_log_types.workspace = true
re_dataframe.workspace = true

# External
arrow2 = { workspace = true, features = ["io_ipc"] }
prost.workspace = true
thiserror.workspace = true
tonic.workspace = true
arrow2 = { workspace = true, features = ["io_ipc"] }

[lints]
workspace = true
8 changes: 4 additions & 4 deletions crates/store/re_remote_store_types/src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ pub enum CodecError {
pub struct MessageHader(pub u8);

impl MessageHader {
pub const NO_DATA: Self = Self(0);
pub const RECORD_BATCH: Self = Self(1);
pub const NO_DATA: Self = Self(1);
pub const RECORD_BATCH: Self = Self(2);

pub const SIZE_BYTES: usize = 1;
}
Expand Down Expand Up @@ -215,7 +215,7 @@ mod tests {

#[test]
fn test_invalid_batch_data() {
let data = vec![1, 2, 3];
let data = vec![2, 3, 4]; // '1' is NO_DATA message header
let decoded = TransportMessageV0::from_bytes(&data);

assert!(matches!(
Expand All @@ -226,7 +226,7 @@ mod tests {

#[test]
fn test_unknown_header() {
let data = vec![2];
let data = vec![3];
let decoded = TransportMessageV0::from_bytes(&data);
assert!(decoded.is_err());

Expand Down

0 comments on commit c3388f1

Please sign in to comment.