Skip to content

Commit

Permalink
Fix ping/slow endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
harryjmoss committed Jan 26, 2024
1 parent 12a375c commit e2ccaf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def ping() -> dict[str, str]:
def pong_slow() -> dict[str, str]:
notnow = arrow.utcnow().format("YYYY-MM-DD HH:mm:ss.SSS")
time.sleep(5)
return notnow
now = arrow.utcnow().format("YYYY-MM-DD HH:mm:ss.SSS")
return {"request_time": notnow, "response_time": now}


@app.get("/ping/fast")
Expand Down

0 comments on commit e2ccaf6

Please sign in to comment.