Skip to content

Commit 39c0aec

Browse files
add async
1 parent 32cc49d commit 39c0aec

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎src/app/api/shared/enpoints/health.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class HealthCheck(BaseModel):
2222
status_code=status.HTTP_200_OK,
2323
response_model=HealthCheck,
2424
)
25-
def get_health() -> HealthCheck:
25+
async def get_health() -> HealthCheck:
2626
"""
2727
## Perform a Health Check
2828
Endpoint to perform a healthcheck on. This endpoint can primarily be used Docker
@@ -43,7 +43,7 @@ def get_health() -> HealthCheck:
4343
status_code=status.HTTP_200_OK,
4444
response_model=HealthCheck,
4545
)
46-
def get_db_health(settings: ConfigDepend) -> HealthCheck:
46+
async def get_db_health(settings: ConfigDepend) -> HealthCheck:
4747
"""
4848
## Perform a Health Check
4949
Endpoint to perform a healthcheck on. This endpoint can primarily be used Docker

‎src/app/services/search.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# src/app/services/search.py
22

33
import time
4-
from functools import cache, lru_cache
54
from typing import Tuple, cast
65

76
import numpy as np

0 commit comments

Comments
 (0)