Skip to content

Commit

Permalink
add version 7
Browse files Browse the repository at this point in the history
  • Loading branch information
childe committed Oct 17, 2024
1 parent f047fbb commit 586bd4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fetch_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func (streamDecoder *fetchResponseStreamDecoder) decodePartitionResponse(topicNa
switch version {
case 0:
bytesBeforeRecordsLength = 18
case 10:
case 7, 10:
bytesBeforeRecordsLength = 38
}
buffer, n, err = streamDecoder.read(bytesBeforeRecordsLength)
Expand Down Expand Up @@ -424,7 +424,7 @@ func (streamDecoder *fetchResponseStreamDecoder) decodeHeader(version uint16) er
case 0:
headerLength = 8
countOffset = 4
case 10:
case 7, 10:
headerLength = 18
countOffset = 14
}
Expand Down

0 comments on commit 586bd4b

Please sign in to comment.