Skip to content

Commit

Permalink
fix: RHINENG-8659 support multi kafka broker (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
r14chandra authored Mar 7, 2024
1 parent bfdfda7 commit 14adcc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/util/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (k kafkautil) NewWriter(topic string) *kafka.Writer {
}

return &kafka.Writer{
Addr: kafka.TCP(config.DefaultConfig.KafkaBrokers.Values[0]),
Addr: kafka.TCP(config.DefaultConfig.KafkaBrokers.Values...),
Topic: topic,
Transport: transport,
}
Expand Down

0 comments on commit 14adcc0

Please sign in to comment.