From 0f78c5b4adf30d8f3f317e3f77c464572ee08628 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Tue, 3 Mar 2020 17:51:22 -0500 Subject: [PATCH] Pass SimpleDiscoveryProperties as parameter. 18a4227c4ef1bdf86c3103e64bce75847a53073e turned proxying off which broke this. fixes gh-687 --- .../simple/SimpleDiscoveryClientAutoConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryClientAutoConfiguration.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryClientAutoConfiguration.java index a513ddeb..7f54c202 100644 --- a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryClientAutoConfiguration.java +++ b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryClientAutoConfiguration.java @@ -68,8 +68,8 @@ public class SimpleDiscoveryClientAutoConfiguration @Bean @Order - public DiscoveryClient simpleDiscoveryClient() { - return new SimpleDiscoveryClient(simpleDiscoveryProperties()); + public DiscoveryClient simpleDiscoveryClient(SimpleDiscoveryProperties properties) { + return new SimpleDiscoveryClient(properties); } private int findPort() {