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:
parent
e9580009ea
commit
7b8b37a2fd
1 changed files with 3 additions and 13 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue