...
|
...
|
@@ -95,9 +95,9 @@ func NewRuner() *Runer { |
|
|
|
|
|
func (r *Runer) InitConsumer() error {
|
|
|
config := sarama.NewConfig()
|
|
|
config.Consumer.Group.Rebalance.Strategy = sarama.BalanceStrategyRoundRobin
|
|
|
//config.Consumer.Group.Rebalance.Strategy = sarama.BalanceStrategyRoundRobin
|
|
|
config.Consumer.Offsets.Initial = sarama.OffsetNewest
|
|
|
config.Version = sarama.V0_10_2_1
|
|
|
config.Version = sarama.V0_10_2_0
|
|
|
consumerGroup, err := sarama.NewConsumerGroup(r.msgConsumer.kafkaHosts, r.msgConsumer.groupId, config)
|
|
|
if err != nil {
|
|
|
return err
|
...
|
...
|
|