From 93530d8d533bc1087bb7aaffcea3f925710f97f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franc=C3=A9=20Wilke?= <francewilke@gmail.com> Date: Tue, 24 Jun 2025 13:21:15 +0200 Subject: [PATCH] Cater for isDebug when connecting to Redis --- redis/redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/redis.go b/redis/redis.go index 2d66e19..ea0e0b5 100644 --- a/redis/redis.go +++ b/redis/redis.go @@ -44,7 +44,7 @@ func GetRedisClient(isDebug bool) *ClientWithHelpers { func connectToRedis(isDebug bool) *ClientWithHelpers { redisHost := os.Getenv("REDIS_HOST") - if redisHost == "false" || redisHost == "" { + if (redisHost == "false" || redisHost == "") && !isDebug { return &ClientWithHelpers{ Client: nil, Available: false, -- GitLab