diff --git a/asynq.go b/asynq.go index 4c658310..dded627a 100644 --- a/asynq.go +++ b/asynq.go @@ -316,6 +316,9 @@ type RedisFailoverClientOpt struct { // https://redis.io/topics/sentinel. SentinelAddrs []string + // Redis sentinel username. + SentinelUsername string + // Redis sentinel password. SentinelPassword string @@ -364,6 +367,7 @@ func (opt RedisFailoverClientOpt) MakeRedisClient() interface{} { return redis.NewFailoverClient(&redis.FailoverOptions{ MasterName: opt.MasterName, SentinelAddrs: opt.SentinelAddrs, + SentinelUsername: opt.SentinelUsername, SentinelPassword: opt.SentinelPassword, Username: opt.Username, Password: opt.Password,