remove kafka topic autocreation

This commit is contained in:
Sergey Chubaryan 2025-02-07 12:03:46 +03:00
parent cf01b1e36f
commit 5baf5ed7e9

View File

@ -16,7 +16,7 @@ func NewKafka(addr, topic string) *Kafka {
Addr: kafka.TCP(addr),
Topic: topic,
Balancer: &kafka.RoundRobin{},
AllowAutoTopicCreation: true,
AllowAutoTopicCreation: false,
BatchSize: 100,
BatchTimeout: 100 * time.Millisecond,
}