mirror of
https://github.com/minio/minio.git
synced 2025-03-30 17:23:42 -04:00
fix: a type in NSQ notification target environment key (#10118)
fixes #10100
This commit is contained in:
parent
3a73f1ead5
commit
b800541fbe
@ -40,7 +40,7 @@ const (
|
|||||||
NSQQueueDir = "queue_dir"
|
NSQQueueDir = "queue_dir"
|
||||||
NSQQueueLimit = "queue_limit"
|
NSQQueueLimit = "queue_limit"
|
||||||
|
|
||||||
EnvNSQEnable = "MINIO_NOTIFY_NSQ"
|
EnvNSQEnable = "MINIO_NOTIFY_NSQ_ENABLE"
|
||||||
EnvNSQAddress = "MINIO_NOTIFY_NSQ_NSQD_ADDRESS"
|
EnvNSQAddress = "MINIO_NOTIFY_NSQ_NSQD_ADDRESS"
|
||||||
EnvNSQTopic = "MINIO_NOTIFY_NSQ_TOPIC"
|
EnvNSQTopic = "MINIO_NOTIFY_NSQ_TOPIC"
|
||||||
EnvNSQTLS = "MINIO_NOTIFY_NSQ_TLS"
|
EnvNSQTLS = "MINIO_NOTIFY_NSQ_TLS"
|
||||||
@ -210,7 +210,7 @@ func NewNSQTarget(id string, args NSQArgs, doneCh <-chan struct{}, loggerOnce fu
|
|||||||
store = NewQueueStore(queueDir, args.QueueLimit)
|
store = NewQueueStore(queueDir, args.QueueLimit)
|
||||||
if oErr := store.Open(); oErr != nil {
|
if oErr := store.Open(); oErr != nil {
|
||||||
target.loggerOnce(context.Background(), oErr, target.ID())
|
target.loggerOnce(context.Background(), oErr, target.ID())
|
||||||
return nil, oErr
|
return target, oErr
|
||||||
}
|
}
|
||||||
target.store = store
|
target.store = store
|
||||||
}
|
}
|
||||||
@ -226,7 +226,7 @@ func NewNSQTarget(id string, args NSQArgs, doneCh <-chan struct{}, loggerOnce fu
|
|||||||
// To treat "connection refused" errors as errNotConnected.
|
// To treat "connection refused" errors as errNotConnected.
|
||||||
if target.store == nil || !(IsConnRefusedErr(err) || IsConnResetErr(err)) {
|
if target.store == nil || !(IsConnRefusedErr(err) || IsConnResetErr(err)) {
|
||||||
target.loggerOnce(context.Background(), err, target.ID())
|
target.loggerOnce(context.Background(), err, target.ID())
|
||||||
return nil, err
|
return target, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user