Skip to content

Commit 0e5d245

Browse files
committed
docs: Update health check method to use async/await for improved API responsiveness
Signed-off-by: Eden Reich <eden.reich@gmail.com>
1 parent 4d86541 commit 0e5d245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ To check if the Inference Gateway is running, use the `health_check` method:
178178
use log::info;
179179

180180
// ...main function
181-
let is_healthy = client.health_check()?;
181+
let is_healthy = client.health_check().await?;
182182
info!("API is healthy: {}", is_healthy);
183183
```
184184

0 commit comments

Comments
 (0)