diff options
Diffstat (limited to 'src/api.rs')
-rw-r--r-- | src/api.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -45,12 +45,12 @@ pub async fn healthcheck(State(services): State<ServiceHandles>) -> Health { let status = match checks .values() - .filter(|s| !matches!(s, Status::Pass)) + .filter(|s| !matches!(s, Status::Ok)) .count() { - 0 => Status::Pass, - 1 => Status::Fail(Some("1 issue detected".to_string())), - n => Status::Fail(Some(format!("{n} issues detected"))), + 0 => Status::Ok, + 1 => Status::Error(Some("1 issue detected".to_string())), + n => Status::Error(Some(format!("{n} issues detected"))), }; Health { status, checks } |