feat: add REDIS_USERNAME support for asynq client
This commit is contained in:
@@ -32,6 +32,7 @@ func getAsynqRedisClientOpt() *asynq.RedisClientOpt {
|
|||||||
}
|
}
|
||||||
opt := &asynq.RedisClientOpt{
|
opt := &asynq.RedisClientOpt{
|
||||||
Addr: os.Getenv("REDIS_ADDR"),
|
Addr: os.Getenv("REDIS_ADDR"),
|
||||||
|
Username: os.Getenv("REDIS_USERNAME"),
|
||||||
Password: os.Getenv("REDIS_PASSWORD"),
|
Password: os.Getenv("REDIS_PASSWORD"),
|
||||||
ReadTimeout: 100 * time.Millisecond,
|
ReadTimeout: 100 * time.Millisecond,
|
||||||
WriteTimeout: 200 * time.Millisecond,
|
WriteTimeout: 200 * time.Millisecond,
|
||||||
|
|||||||
Reference in New Issue
Block a user