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

This commit is contained in:
yusing
2026-01-09 00:41:25 +08:00
parent 1ca5fc5ac6
commit 7e7e885c57

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()