Skip to content

Commit

Permalink
Perf: consumer callback is now executed as goroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
asheswook committed Jul 23, 2024
1 parent dc671c3 commit edab5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/queue/kafka/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (c *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim saram
return nil
}

c.callback(msg)
go c.callback(msg)

case <-session.Context().Done():
return nil
Expand Down

0 comments on commit edab5b7

Please sign in to comment.