Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kf6nux authored May 16, 2024
1 parent ebca72e commit d0aa092
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions message_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ func (r *messageSetReader) readMessage(min int64, key readBytesFunc, val readByt
// Set an invalid value so that it can be ignored
lastOffset = -1
case 2:
for ; r.count == 0; err = r.readHeader() {
if err != nil {
return
}
}
offset, lastOffset, timestamp, headers, err = r.readMessageV2(min, key, val)
default:
err = r.header.badMagic()
Expand Down

0 comments on commit d0aa092

Please sign in to comment.