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

Merged
alexvanin merged 1 commits from dkirillov/frostfs-sdk-go:feature/73-add_pool_for_tree_endpoints into master 2023-06-08 14:49:06 +00:00
1 changed files with 2 additions and 0 deletions

View File

@ -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
}