This commit is contained in:
@@ -31,7 +31,7 @@ public sealed class TimeAnchorHealthCheck : IHealthCheck
|
||||
return HealthCheckResult.Unhealthy("time-anchor-stale");
|
||||
}
|
||||
|
||||
var data = new Dictionary<string, object?>
|
||||
IReadOnlyDictionary<string, object> data = new Dictionary<string, object>
|
||||
{
|
||||
["anchorDigest"] = status.Anchor.TokenDigest,
|
||||
["ageSeconds"] = status.Staleness.AgeSeconds,
|
||||
@@ -41,7 +41,7 @@ public sealed class TimeAnchorHealthCheck : IHealthCheck
|
||||
|
||||
if (status.Staleness.IsWarning)
|
||||
{
|
||||
return HealthCheckResult.Degraded("time-anchor-warning", data);
|
||||
return HealthCheckResult.Degraded("time-anchor-warning", data: data);
|
||||
}
|
||||
|
||||
return HealthCheckResult.Healthy("time-anchor-healthy", data);
|
||||
|
||||
Reference in New Issue
Block a user