Skip to content

Commit

Permalink
修复sink插件franzKafka无法自动创建topic的问题 (#641)
Browse files Browse the repository at this point in the history
Co-authored-by: sunbink <o1Haxpgz3>
  • Loading branch information
sunbin0530 committed Nov 6, 2023
1 parent 8e89d72 commit 342e58a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sink/franz/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func (s *Sink) Start() error {
kgo.SeedBrokers(c.Brokers...),
kgo.ProducerBatchCompression(getCompression(c.Compression)),
kgo.WithLogger(&logger),
kgo.AllowAutoTopicCreation(),
}

if c.BatchSize > 0 {
Expand Down

0 comments on commit 342e58a

Please sign in to comment.