fix password config for redis sentinel state

This commit is contained in:
Syuparn 2021-03-27 19:21:45 +09:00
parent a43a0d908b
commit 760a4caccc
1 changed files with 1 additions and 0 deletions

View File

@ -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,