Typo in example code for DiscoveryClient

`DiscoveryClient` field declared with name `discoveryClient` but `serviceUrl()` method uses `client`.
This commit is contained in:
Marc Paquette
2016-03-14 16:31:20 -04:00
parent 2bca3504cd
commit a7e34d706d

View File

@@ -272,7 +272,7 @@ to Netflix, e.g.
private DiscoveryClient discoveryClient;
public String serviceUrl() {
List<ServiceInstance> list = client.getInstances("STORES");
List<ServiceInstance> list = discoveryClient.getInstances("STORES");
if (list != null && list.size() > 0 ) {
return list.get(0).getUri();
}