Update asynq deps

This commit is contained in:
Akhyar Amarullah
2022-09-27 16:57:58 +07:00
parent 5111aa4f21
commit 1684449cd7
3 changed files with 15 additions and 3 deletions

View File

@@ -109,8 +109,7 @@ func makeRedisConnOpt(cfg *Config) (asynq.RedisConnOpt, error) {
}
connOpt := res.(asynq.RedisFailoverClientOpt) // safe to type-assert
connOpt.TLSConfig = makeTLSConfig(cfg)
connOpt.SentinelPassword = connOpt.Password // password from asynq.ParseRedisURI should be used for sentinel
connOpt.Password = cfg.RedisPassword // override parsed password with value from config
connOpt.Password = cfg.RedisPassword // override parsed password with value from config
return connOpt, nil
}