Skip to content

Commit

Permalink
dekaf: Use ControlMessageType of -1 to reduce the chance of it incorr…
Browse files Browse the repository at this point in the history
…ectly getting assigned meaning later on
  • Loading branch information
jshearer committed Oct 22, 2024
1 parent 86ef481 commit f0eb24f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/dekaf/src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ impl Read {
// Control Message keys are always 4 bytes:
// Version: 0i16
buf.put_i16(0);
// ControlMessageType: >1 i16
buf.put_i16(2);
// ControlMessageType: != 0 or 1 i16
buf.put_i16(-1);
record_bytes += buf.len();
Some(buf.split().freeze())
} else {
Expand Down

0 comments on commit f0eb24f

Please sign in to comment.