From 1e102a53928f2ea5de5b9d39c11408e81c9ded84 Mon Sep 17 00:00:00 2001 From: Skwol Date: Sat, 26 Oct 2024 13:04:21 +0300 Subject: [PATCH] Need to support redis sentinel username. (#924) --- asynq.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/asynq.go b/asynq.go index 4c65831..dded627 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,