罗俊辉 1 년 전
부모
커밋
7d03096f9d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      applications/routes.py

+ 2 - 2
applications/routes.py

@@ -16,7 +16,7 @@ my_blueprint = Blueprint('kimi', __name__)
 
 
 @my_blueprint.route('/healthcheck')
-async def hello():
+def hello():
     """
     Hello World Test
     :return:
@@ -26,7 +26,7 @@ async def hello():
         info="请求接口成功",
         port="healthcheck"
     )
-    await asyncio.sleep(30)
+    time.sleep(30)
     return jsonify({'message': 'Hello, World!'})