[#24] Client: Implement pool part2

Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
Pavel Gross 2024-11-01 10:30:28 +03:00
parent c9a75ea025
commit ee20798379
63 changed files with 801 additions and 526 deletions

View file

@ -21,7 +21,7 @@ internal sealed class InnerPool
if (Clients.Length == 1)
{
var client = Clients[0];
if (client.StatusMonitor.IsHealthy())
if (client.IsHealthy())
{
return client;
}
@ -34,7 +34,7 @@ internal sealed class InnerPool
{
int index = Sampler.Next();
if (Clients[index].StatusMonitor.IsHealthy())
if (Clients[index].IsHealthy())
{
return Clients[index];
}