From 9d40228cecbee13c2026f9b7992aebca431387f0 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Thu, 8 Jun 2023 17:01:33 +0300 Subject: [PATCH] [#73] pool/tree: Fix client healthy status Signed-off-by: Denis Kirillov --- pool/tree/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pool/tree/client.go b/pool/tree/client.go index cbf8d53..60377db 100644 --- a/pool/tree/client.go +++ b/pool/tree/client.go @@ -69,6 +69,8 @@ func (c *treeClient) redialIfNecessary(ctx context.Context) (healthHasChanged bo return wasHealthy, fmt.Errorf("healthcheck tree service: %w", err) } + c.healthy = true + return !wasHealthy, nil }