[#24] Client: Implement pool part2
Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
c9a75ea025
commit
ee20798379
63 changed files with 801 additions and 526 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue