Commit cae13794 by Spencer Gibb

Merge pull request #903 from marcpa00/patch-1

Typo in example code for `DiscoveryClient`
parents 2bca3504 a7e34d70
...@@ -272,7 +272,7 @@ to Netflix, e.g. ...@@ -272,7 +272,7 @@ to Netflix, e.g.
private DiscoveryClient discoveryClient; private DiscoveryClient discoveryClient;
public String serviceUrl() { public String serviceUrl() {
List<ServiceInstance> list = client.getInstances("STORES"); List<ServiceInstance> list = discoveryClient.getInstances("STORES");
if (list != null && list.size() > 0 ) { if (list != null && list.size() > 0 ) {
return list.get(0).getUri(); return list.get(0).getUri();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment