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:
philia 2019-03-22 20:38:03 +08:00 committed by Thiago Loureiro
parent 2a33397c39
commit 9740dae482

View File

@ -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>();