Skip to content

Commit 2a81423

Browse files
authored
remove async when not necessary (#379)
1 parent 5098b4b commit 2a81423

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lessons/231/python-app/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ def filter(self, record):
3939

4040

4141
@app.get("/healthz", response_class=PlainTextResponse)
42-
async def health():
42+
def health():
4343
return "OK"
4444

4545

4646
@app.get("/api/devices", response_class=ORJSONResponse)
47-
async def get_devices():
47+
def get_devices():
4848
devices = [
4949
{
5050
"id": 1,

0 commit comments

Comments
 (0)