Skip to content

Commit 4db4918

Browse files
committed
Simplified healthcheck handler by returning the result directly
1 parent a76f1fc commit 4db4918

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lf_toolkit/io/handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ async def handle_preview(self, req: dict):
5959

6060
async def handle_healthcheck(self, req: dict):
6161
from .healthcheck import run_healthcheck
62-
result = await anyio.to_thread.run_sync(run_healthcheck)
63-
return {"status": "OK" if result["tests_passed"] else "DEGRADED"}
62+
return await anyio.to_thread.run_sync(run_healthcheck)
6463

6564
async def handle(self, name: Command, req: dict) -> dict:
6665
handler = getattr(self, f"handle_{name}", None)

0 commit comments

Comments
 (0)