소스 검색

异步化

罗俊辉 1 년 전
부모
커밋
47b57417f4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      applications/match_alg/recall.py

+ 1 - 1
applications/match_alg/recall.py

@@ -367,7 +367,7 @@ async def recall_videos(params, trace_id):
     # url = "http://61.48.133.26:8111/search_videos"
     # requests.post(url, json=payload)
     # # print("请求完成")
-    await asyncio.sleep(15)
+    # await asyncio.sleep(15)
     # select_sql = "select video_id, video_title from crawler_video where platform='weixin_search' and user_id = '{}' order by update_time DESC limit 10".format(
     #     user_id)
     # out_video_list = select(sql=select_sql)