Browse Source

Merge pull request #903 from marcpa00/patch-1

Typo in example code for `DiscoveryClient`
pull/6/head
Spencer Gibb 9 years ago
parent
commit
cae1379440
  1. 2
      docs/src/main/asciidoc/spring-cloud-netflix.adoc

2
docs/src/main/asciidoc/spring-cloud-netflix.adoc

@ -272,7 +272,7 @@ to Netflix, e.g. @@ -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();
}

Loading…
Cancel
Save