Skip to content

Commit edab5b7

Browse files
committed
Perf: consumer callback is now executed as goroutine
1 parent dc671c3 commit edab5b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/queue/kafka/consumer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (c *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim saram
2525
return nil
2626
}
2727

28-
c.callback(msg)
28+
go c.callback(msg)
2929

3030
case <-session.Context().Done():
3131
return nil

0 commit comments

Comments
 (0)