Skip to content

Commit

Permalink
fix: Corrupted lines in produce cmd with 'line' mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vladaburian committed Sep 25, 2024
1 parent bfd8c16 commit d664341
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 d664341

Please sign in to comment.