2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-04-20 07:40:19 +08:00

undo MakeRedisClient change

This commit is contained in:
Gavin Kline 2023-11-29 16:56:38 -05:00
parent c065df6a18
commit 5a5f1f5eea

View File

@ -290,8 +290,9 @@ type RedisClientOpt struct {
} }
func (opt RedisClientOpt) MakeRedisClient() interface{} { func (opt RedisClientOpt) MakeRedisClient() interface{} {
return redis.NewUniversalClient(&redis.UniversalOptions{ return redis.NewClient(&redis.Options{
Addrs: []string{opt.Addr}, Network: opt.Network,
Addr: opt.Addr,
Username: opt.Username, Username: opt.Username,
Password: opt.Password, Password: opt.Password,
DB: opt.DB, DB: opt.DB,