Skip to content

Commit

Permalink
fix(loki/kafkatarget): correct sticky balance strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
hainenber committed Sep 16, 2023
1 parent fba88be commit 488dec2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NewSyncer(

switch cfg.KafkaConfig.Assignor {
case sarama.StickyBalanceStrategyName:
config.Consumer.Group.Rebalance.Strategy = sarama.NewBalanceStrategyRange()
config.Consumer.Group.Rebalance.Strategy = sarama.NewBalanceStrategySticky()
case sarama.RoundRobinBalanceStrategyName:
config.Consumer.Group.Rebalance.Strategy = sarama.NewBalanceStrategyRoundRobin()
case sarama.RangeBalanceStrategyName, "":
Expand Down

0 comments on commit 488dec2

Please sign in to comment.