罗俊辉 1 vuosi sitten
vanhempi
commit
7d03096f9d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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!'})