Add timeout to message forward

This commit is contained in:
Changhua committed 2023-08-02 00:08:11 +08:00
1 parent 1b53bd8932
commit e6b6a0967c
1 file changed
+1 -1
+1 -1
View File
@@ -82,7 +82,7 @@ class Http(FastAPI):
data["is_group"] = msg.from_group()
try:
rsp = requests.post(url=cb, json=data)
rsp = requests.post(url=cb, json=data, timeout=30)
if rsp.status_code != 200:
self.LOG.error(f"消息转发失败,HTTP 状态码为: {rsp.status_code}")
except Exception as e: