Skip to content

Commit

Permalink
Hotfix: consumer mark message when ConsumeClaim
Browse files Browse the repository at this point in the history
  • Loading branch information
asheswook committed Aug 13, 2024
1 parent aa31e39 commit 07912e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/queue/kafka/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (c *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim saram

c.callback(msg)

session.MarkMessage(msg, "") // sarama internal offset commit, not a kafka commit
case <-session.Context().Done():
return nil
}
Expand Down

0 comments on commit 07912e2

Please sign in to comment.