Merge pull request #193 from imduffy15/patch-1
Fix example segment of code
This commit is contained in:
@@ -123,7 +123,7 @@ You can also use the `org.springframework.cloud.client.discovery.DiscoveryClient
|
||||
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();
|
||||
}
|
||||
@@ -308,4 +308,4 @@ public class Turbine {
|
||||
SpringApplication.run(DemoturbinecommonsApplication.class, args);
|
||||
}
|
||||
}
|
||||
----
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user