Skip to content

Commit

Permalink
delete useless line that crashed sarama for empty messages (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianstrauch committed Jul 1, 2021
1 parent c06fd6d commit 6127661
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/cmd/kafka/sarama.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ func (*GroupHandler) Cleanup(_ sarama.ConsumerGroupSession) error { return nil }
func (h *GroupHandler) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error {
for msg := range claim.Messages() {
value := msg.Value
// For messages with schema, first byte is magic byte 0x0.
_ = value[0]

if h.Properties.PrintKey {
key := msg.Key
var keyString string
Expand Down

0 comments on commit 6127661

Please sign in to comment.