From abaf061c2a206dbe20c22d8eda9201933ea878ee Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Thu, 12 Feb 2026 18:23:11 +0800 Subject: [PATCH] Skip nil client for health --- proxy/internal/health/health.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proxy/internal/health/health.go b/proxy/internal/health/health.go index afacd30d6..ac5061a23 100644 --- a/proxy/internal/health/health.go +++ b/proxy/internal/health/health.go @@ -340,6 +340,13 @@ func NewServer(addr string, checker *Checker, logger *log.Logger, metricsHandler } func checkClientHealth(client *embed.Client) ClientHealth { + if client == nil { + return ClientHealth{ + Healthy: false, + Error: "client not initialized", + } + } + status, err := client.Status() if err != nil { return ClientHealth{