From 17a82c21aa2e5e192b1aa1756bb678f65b6bae09 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Mon, 16 Nov 2020 16:34:31 -0500 Subject: [PATCH] Move properties to parameter. Fixes gh-850 --- .../SimpleReactiveDiscoveryClientAutoConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/reactive/SimpleReactiveDiscoveryClientAutoConfiguration.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/reactive/SimpleReactiveDiscoveryClientAutoConfiguration.java index 31efe366..96473ee4 100644 --- a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/reactive/SimpleReactiveDiscoveryClientAutoConfiguration.java +++ b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/reactive/SimpleReactiveDiscoveryClientAutoConfiguration.java @@ -77,8 +77,8 @@ public class SimpleReactiveDiscoveryClientAutoConfiguration @Bean @Order - public SimpleReactiveDiscoveryClient simpleReactiveDiscoveryClient() { - return new SimpleReactiveDiscoveryClient(simpleReactiveDiscoveryProperties()); + public SimpleReactiveDiscoveryClient simpleReactiveDiscoveryClient(SimpleReactiveDiscoveryProperties properties) { + return new SimpleReactiveDiscoveryClient(properties); } private int findPort() {