Browse Source

cw3

master
Andrey Kovalev 2 years ago
parent
commit
74baf0352d
Signed by: Russia9
GPG Key ID: EC3AA65373CA51DC
  1. 2
      app.go
  2. 2
      app/app.go

2
app.go

@ -44,7 +44,7 @@ func main() { @@ -44,7 +44,7 @@ func main() {
// Kafka consumer init
consumer, err := kafka.NewConsumer(&kafka.ConfigMap{
"bootstrap.servers": utils.GetEnv("KAFKA_ADDRESS", "localhost"),
"group.id": "cw2-duels",
"group.id": "cw3-duels",
"auto.offset.reset": "latest",
})
if err != nil {

2
app/app.go

@ -21,7 +21,7 @@ func Init(bot *telebot.Bot, chat *telebot.Chat, consumer *kafka.Consumer) error @@ -21,7 +21,7 @@ func Init(bot *telebot.Bot, chat *telebot.Chat, consumer *kafka.Consumer) error
Consumer: consumer,
}
err := consumer.SubscribeTopics([]string{"cw2-duels"}, nil)
err := consumer.SubscribeTopics([]string{"cw3-duels"}, nil)
if err != nil {
return err
}

Loading…
Cancel
Save