Skip to content

Commit

Permalink
fix topic claim log
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Dec 18, 2024
1 parent ea1c55e commit 34baf3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/runner/pubsub/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (c *consumer) subscribe(ctx context.Context, group sarama.ConsumerGroup) {
func (c *consumer) Setup(session sarama.ConsumerGroupSession) error {
logger := log.FromContext(session.Context())

partitions := session.Claims()[kafkaConsumerGroupID(c.moduleName, c.verb)]
partitions := session.Claims()[c.kafkaTopicID()]
logger.Infof("Starting consume session for subscription %s with partitions: [%v]", c.verb.Name, strings.Join(slices.Map(partitions, func(partition int32) string { return strconv.Itoa(int(partition)) }), ","))

return nil
Expand Down

0 comments on commit 34baf3a

Please sign in to comment.