main #22

Merged
ccyj merged 68 commits from sangge/tpre-python:main into main 2023-10-26 14:45:47 +08:00
Showing only changes of commit 2271369d2e - Show all commits

View File

@ -15,9 +15,9 @@ async def lifespan(app: FastAPI):
app = FastAPI(lifespan=lifespan) app = FastAPI(lifespan=lifespan)
server_address = "http://10.20.14.232:8000/server" server_address = "http://110.41.155.96:8000/server"
id = 0 id = 0
ip = "10.16.21.163" ip = ""
client_ip_src = "" # 发送信息用户的ip client_ip_src = "" # 发送信息用户的ip
client_ip_des = "" # 接收信息用户的ip client_ip_des = "" # 接收信息用户的ip
processed_message = () # 重加密后的数据 processed_message = () # 重加密后的数据
@ -73,7 +73,7 @@ async def send_heartbeat_internal() -> None:
folderol = requests.get(url) folderol = requests.get(url)
except: except:
print("Central server error") print("Central server error")
# 删除超时的节点(假设你有一个异步的数据库操作函数) # 删除超时的节点(假设你有一个异步的数据库操作函数)
await asyncio.sleep(timeout) await asyncio.sleep(timeout)