mirror of
https://github.com/pgsty/minio.git
synced 2026-10-07 18:25:58 +03:00
fix panic when checking if es/nats event target is active (#9587)
This commit is contained in:
@@ -106,7 +106,7 @@ func (target *NSQTarget) HasQueueStore() bool {
|
||||
|
||||
// IsActive - Return true if target is up and active
|
||||
func (target *NSQTarget) IsActive() (bool, error) {
|
||||
if target.producer != nil {
|
||||
if target.producer == nil {
|
||||
producer, err := nsq.NewProducer(target.args.NSQDAddress.String(), target.config)
|
||||
if err != nil {
|
||||
return false, err
|
||||
|
||||
Reference in New Issue
Block a user