Skip to content

Commit

Permalink
chore: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Jul 15, 2024
1 parent ee8828d commit 6d208e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kq/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ func newKafkaQueue(c KqConf, handler ConsumeHandler, options queueOptions) queue
errorHandler: options.errorHandler,
}
q.commitRunner = threading.NewStableRunner(func(msg kafka.Message) kafka.Message {
if err := q.consumeOne(string(msg.Key), string(msg.Value)); err != nil {
if err := q.consumeOne(context.Background(), string(msg.Key), string(msg.Value)); err != nil {
if q.errorHandler != nil {
q.errorHandler(msg, err)
q.errorHandler(context.Background(), msg, err)
}
}

Expand Down

0 comments on commit 6d208e8

Please sign in to comment.