wip: removed some debug statements and all tests passing on my PC...feel there is something wrong with the service discovery test around task execution not completing

This commit is contained in:
TomPallister
2017-02-05 21:21:02 +00:00
parent fb0f101732
commit 932bcb73d4
4 changed files with 14 additions and 24 deletions

View File

@ -32,16 +32,14 @@ namespace Ocelot.LoadBalancer.LoadBalancers
public Response Add(string key, ILoadBalancer loadBalancer)
{
try
if (!_loadBalancers.ContainsKey(key))
{
_loadBalancers.Add(key, loadBalancer);
return new OkResponse();
}
catch (System.Exception exception)
{
Console.WriteLine(exception.StackTrace);
throw;
}
_loadBalancers.Remove(key);
_loadBalancers.Add(key, loadBalancer);
return new OkResponse();
}
}
}