Change sleep time

This commit is contained in:
38elements
2016-11-26 14:47:42 +09:00
parent 0bd61f6a57
commit d8e480ab48
2 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ Config.REQUEST_TIMEOUT = 1
app = Sanic(__name__)
@app.route("/")
@app.route('/')
async def test(request):
await asyncio.sleep(3)
return text('Hello, world!')
@@ -18,4 +18,4 @@ async def test(request):
def timeout(request, exception):
return text('RequestTimeout from error_handler.')
app.run(host="0.0.0.0", port=8000)
app.run(host='0.0.0.0', port=8000)