From 9ec7d91a46bad23927a84bb6355e8766ecdb9d24 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期四, 17 八月 2023 12:28:58 +0800 Subject: [PATCH] ++++++++++++++++ bug修复 --- code_attribute/limit_up_time_manager.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/code_attribute/limit_up_time_manager.py b/code_attribute/limit_up_time_manager.py index 25cd138..d8a02af 100644 --- a/code_attribute/limit_up_time_manager.py +++ b/code_attribute/limit_up_time_manager.py @@ -2,8 +2,8 @@ """ 娑ㄥ仠鏃堕棿绠$悊鍣� """ -from db import redis_manager -from db.redis_manager import RedisUtils +from db import redis_manager_delegate as redis_manager +from db.redis_manager_delegate import RedisUtils from utils import global_util, tool @@ -37,8 +37,9 @@ if not cache_result[0] or cache_result[1] is None: global_util.limit_up_time[code] = time tool.CodeDataCacheUtil.set_cache(self.__limit_up_time_cache, code, time) - RedisUtils.setex_async( - self.__db, "limit_up_time-{}".format(code), tool.get_expire(), time) + # TODO 娴嬭瘯 + # RedisUtils.setex_async( + # self.__db, "limit_up_time-{}".format(code), tool.get_expire(), time) def get_limit_up_time(self, code): time = global_util.limit_up_time.get(code) -- Gitblit v1.8.0