mirror of
https://github.com/minio/minio.git
synced 2025-01-25 21:53:16 -05:00
Fix Kafka initialization crash (#16523)
This commit is contained in:
parent
2278fc8f47
commit
0b7989aa4b
@ -321,7 +321,6 @@ func (target *KafkaTarget) initKafka() error {
|
|||||||
if err != sarama.ErrOutOfBrokers {
|
if err != sarama.ErrOutOfBrokers {
|
||||||
target.loggerOnce(context.Background(), err, target.ID().String())
|
target.loggerOnce(context.Background(), err, target.ID().String())
|
||||||
}
|
}
|
||||||
target.producer.Close()
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
target.producer = producer
|
target.producer = producer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user