Fix Kafka initialization crash (#16523)

This commit is contained in:
Klaus Post 2023-02-02 14:51:19 +01:00 committed by GitHub
parent 2278fc8f47
commit 0b7989aa4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,7 +321,6 @@ func (target *KafkaTarget) initKafka() error {
if err != sarama.ErrOutOfBrokers {
target.loggerOnce(context.Background(), err, target.ID().String())
}
target.producer.Close()
return err
}
target.producer = producer