refactor: assembling the app features in modular way (#9129)
Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
@@ -4,6 +4,7 @@ from redis.connection import Connection, SSLConnection
|
||||
from redis.sentinel import Sentinel
|
||||
|
||||
from configs import dify_config
|
||||
from dify_app import DifyApp
|
||||
|
||||
|
||||
class RedisClientWrapper:
|
||||
@@ -43,7 +44,7 @@ class RedisClientWrapper:
|
||||
redis_client = RedisClientWrapper()
|
||||
|
||||
|
||||
def init_app(app):
|
||||
def init_app(app: DifyApp):
|
||||
global redis_client
|
||||
connection_class = Connection
|
||||
if dify_config.REDIS_USE_SSL:
|
||||
|
Reference in New Issue
Block a user