mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:42:50 +08:00
Allows access to unpass node (#825)
* Fix bug: If the registered Consul node is unexpectedly down and not restarted immediately, other services should continue to find the registered service. * fix bug: If the registered Consul node is unexpectedly down and not restarted immediately, other services should continue to find the registered service.
This commit is contained in:
parent
2a33397c39
commit
9740dae482
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
public async Task<List<Service>> Get()
|
public async Task<List<Service>> Get()
|
||||||
{
|
{
|
||||||
var queryResult = await _consul.Health.Service(_config.KeyOfServiceInConsul, string.Empty, true);
|
var queryResult = await _consul.Health.Service(_config.KeyOfServiceInConsul, string.Empty, false);
|
||||||
|
|
||||||
var services = new List<Service>();
|
var services = new List<Service>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user