Skip to content

Commit

Permalink
Restore multiline processV0OuterMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitarvdimitrov authored and ortuman committed Oct 3, 2024
1 parent 6a41cff commit de0cd18
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/kgo/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,12 @@ func processV1Message(

// Processes an outer v0 message. We expect inner messages to be entirely v0 as
// well, so this only tries v0 always.
func processV0OuterMessage(o *ProcessFetchPartitionOptions, fp *FetchPartition, message *kmsg.MessageV0, decompressor *decompressor) (int, int) {
func processV0OuterMessage(
o *ProcessFetchPartitionOptions,
fp *FetchPartition,
message *kmsg.MessageV0,
decompressor *decompressor,
) (int, int) {
compression := byte(message.Attributes & 0x0003)
if compression == 0 {
processV0Message(o, fp, message)
Expand Down

0 comments on commit de0cd18

Please sign in to comment.