[#73] pool/tree: Fix client healthy status

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2023-06-08 17:01:33 +03:00
parent af40dc68f0
commit 9d40228cec

View file

@ -69,6 +69,8 @@ func (c *treeClient) redialIfNecessary(ctx context.Context) (healthHasChanged bo
return wasHealthy, fmt.Errorf("healthcheck tree service: %w", err) return wasHealthy, fmt.Errorf("healthcheck tree service: %w", err)
} }
c.healthy = true
return !wasHealthy, nil return !wasHealthy, nil
} }