Skip to content

Commit

Permalink
Merge pull request #366 from vladaburian/fix-produce-lines
Browse files Browse the repository at this point in the history
fix: Corrupted lines in produce cmd with 'line' mode
  • Loading branch information
birdayz authored Sep 28, 2024
2 parents bfd8c16 + d664341 commit 0e1dddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kaf/produce.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func readLines(reader io.Reader, out chan []byte) {
}

for scanner.Scan() {
out <- scanner.Bytes()
out <- bytes.Clone(scanner.Bytes())
}
close(out)

Expand Down

0 comments on commit 0e1dddd

Please sign in to comment.