fix password config for redis sentinel state
This commit is contained in:
parent
a43a0d908b
commit
760a4caccc
|
@ -178,6 +178,7 @@ func (r *StateStore) newClient(m metadata) *redis.Client {
|
|||
func (r *StateStore) newFailoverClient(m metadata) *redis.Client {
|
||||
opts := &redis.FailoverOptions{
|
||||
MasterName: r.metadata.sentinelMasterName,
|
||||
Password: m.password,
|
||||
SentinelAddrs: []string{r.metadata.host},
|
||||
DB: defaultDB,
|
||||
MaxRetries: m.maxRetries,
|
||||
|
|
Loading…
Reference in New Issue