Merge branch 'master' of https://e.coding.net/tjwater/tjwatercloud/TJWaterServer
This commit is contained in:
4
main.py
4
main.py
@@ -41,6 +41,10 @@ if not os.path.exists(tmpDir):
|
|||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
|
# 初始化 Redis 连接
|
||||||
|
# 用redis 限制并发访u
|
||||||
|
redis_client = redis.Redis(host="localhost", port=6379, db=0)
|
||||||
|
|
||||||
# 配置日志记录器
|
# 配置日志记录器
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|||||||
Reference in New Issue
Block a user