Browse Source

数据库连接test

22285461@qq.com 6 months ago
parent
commit
e3e9572ea9
1 changed files with 2 additions and 3 deletions
  1. 2 3
      main.py

+ 2 - 3
main.py

@@ -1,6 +1,5 @@
 import asyncio
 import logging
-import threading
 
 import openai
 from fastapi import FastAPI, Request
@@ -46,10 +45,10 @@ def check_db_connect():
             database.close()
             database.connect()
             logging.info("reconnect database")
-    threading.Timer(60 * 60, check_db_connect).start()
+    # threading.Timer(60 * 60, check_db_connect).start()
 
 
-check_db_connect()
+# check_db_connect()
 
 
 class Question(BaseModel):