From 6327d72bc84d95f92da510c2c1ea81068ed072f1 Mon Sep 17 00:00:00 2001 From: liuhaoran <75237518+liuhaoran1212@users.noreply.github.com> Date: Mon, 4 Nov 2024 09:42:39 +0800 Subject: [PATCH] fix ext_redis.py --- api/extensions/ext_redis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/extensions/ext_redis.py b/api/extensions/ext_redis.py index 1e0ad59689..36f06c1104 100644 --- a/api/extensions/ext_redis.py +++ b/api/extensions/ext_redis.py @@ -1,12 +1,12 @@ import redis +from redis.cluster import ClusterNode, RedisCluster from redis.connection import Connection, SSLConnection from redis.sentinel import Sentinel -from redis.cluster import RedisCluster, ClusterNode from configs import dify_config -class RedisClientWrapper(): +class RedisClientWrapper: """ A wrapper class for the Redis client that addresses the issue where the global `redis_client` variable cannot be updated when a new Redis instance is returned