Browse Source

Pass SimpleDiscoveryProperties as parameter.

18a4227c4e turned proxying off which broke this.

fixes gh-687
pull/705/head
Spencer Gibb 5 years ago
parent
commit
0f78c5b4ad
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 4
      spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryClientAutoConfiguration.java

4
spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryClientAutoConfiguration.java

@ -68,8 +68,8 @@ public class SimpleDiscoveryClientAutoConfiguration
@Bean @Bean
@Order @Order
public DiscoveryClient simpleDiscoveryClient() { public DiscoveryClient simpleDiscoveryClient(SimpleDiscoveryProperties properties) {
return new SimpleDiscoveryClient(simpleDiscoveryProperties()); return new SimpleDiscoveryClient(properties);
} }
private int findPort() { private int findPort() {

Loading…
Cancel
Save