瀏覽代碼

add timeout

luojunhui 3 月之前
父節點
當前提交
c036d6d957
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      applications/functions/get_history_oss_path.py

+ 1 - 0
applications/functions/get_history_oss_path.py

@@ -18,6 +18,7 @@ async def request_for_fission_info(content_id: str) -> Dict:
                 url,
                 json={"contentId": content_id},
                 headers={"Content-Type": "application/json"},
+                timeout=5
             ) as response:
                 response.raise_for_status()
                 return await response.json()