steveagi commited on
Commit
5633f83
·
1 Parent(s): c9dd0e6
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,10 +10,10 @@ async def root():
10
 
11
  @app.get("/info_sync")
12
  def info_sync():
13
- time.sleep(1)
14
  return {"message": "sync"}
15
 
16
  @app.get("/info_async")
17
  async def info_async():
18
- asyncio.sleep(1)
19
  return {"message": "async"}
 
10
 
11
  @app.get("/info_sync")
12
  def info_sync():
13
+ time.sleep(5)
14
  return {"message": "sync"}
15
 
16
  @app.get("/info_async")
17
  async def info_async():
18
+ asyncio.sleep(5)
19
  return {"message": "async"}