罗俊辉 1 year ago
parent
commit
7d03096f9d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      applications/routes.py

+ 2 - 2
applications/routes.py

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