fix panic when checking if es/nats event target is active (#9587)

This commit is contained in:
poornas
2020-05-13 06:37:22 -07:00
committed by GitHub
parent 94f1a1dea3
commit 2ecf5ba1de
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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