Commit a7e34d70 by Marc Paquette

Typo in example code for `DiscoveryClient`

`DiscoveryClient` field declared with name `discoveryClient` but `serviceUrl()` method uses `client`.
parent 2bca3504
......@@ -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();
}
......
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