From 548450c170db904ac94c2e0c690f296789c294ea Mon Sep 17 00:00:00 2001 From: Dounx Date: Fri, 6 Feb 2026 21:05:34 +0800 Subject: [PATCH] feat: add REDIS_USERNAME support for asynq client --- internal/router/task.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/router/task.go b/internal/router/task.go index 06149ca0..8bf0d27d 100644 --- a/internal/router/task.go +++ b/internal/router/task.go @@ -32,6 +32,7 @@ func getAsynqRedisClientOpt() *asynq.RedisClientOpt { } opt := &asynq.RedisClientOpt{ Addr: os.Getenv("REDIS_ADDR"), + Username: os.Getenv("REDIS_USERNAME"), Password: os.Getenv("REDIS_PASSWORD"), ReadTimeout: 100 * time.Millisecond, WriteTimeout: 200 * time.Millisecond,