fix(health/http): potential panic when error is tlsErr

This commit is contained in:
yusing
2026-01-09 00:41:25 +08:00
parent 5aa7dc09e5
commit 2e3ebefc4e

View File

@@ -106,6 +106,11 @@ func processHealthResponse(lat time.Duration, err error, getStatusCode func() in
Detail: err.Error(),
}, nil
}
return types.HealthCheckResult{
Latency: lat,
Healthy: true,
Detail: tlsErr.Error(),
}, nil
}
statusCode := getStatusCode()