health_check no longer reads a timestamp it does not publish

The previous commit left health_check computing an observed_at and a
state/detail pair whose only consumer was the deleted publisher; the
timestamp helper itself was deleted, so the workspace did not build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-29 23:18:57 +02:00
commit 7b8b37a2fd

View file

@ -8550,19 +8550,9 @@ fn quest_access_status(options: Options) -> Result<()> {
}
fn health_check(options: &Options) -> Result<()> {
let observed_at = idunn_timestamp()?;
let result = evaluate_health(options);
let (state, detail) = match &result {
Ok(detail) => ("active", detail.clone()),
Err(error) => ("failed", error.to_string()),
};
match result {
Ok(detail) => {
println!("{detail}");
Ok(())
}
Err(error) => Err(error),
}
let detail = evaluate_health(options)?;
println!("{detail}");
Ok(())
}
fn evaluate_health(options: &Options) -> Result<String> {