Skip to content

Commit

Permalink
Revert AllowAutoTopicCreation: false setting
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-im-aren committed Oct 14, 2022
1 parent 8f3b52c commit cabba3e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/kafka/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ func NewProducer(bootStrapServer string, topic string, logger log.Logger) *Produ
func (p *Producer) Produce(ctx context.Context, message string) error {
if p.writer == nil {
p.writer = &kafka.Writer{
Topic: p.topic,
Addr: kafka.TCP(p.bootstrapServer),
Logger: p.logger,
AllowAutoTopicCreation: false,
Topic: p.topic,
Addr: kafka.TCP(p.bootstrapServer),
Logger: p.logger,
}
}

Expand Down

0 comments on commit cabba3e

Please sign in to comment.