fix:fix tsf lossless not working bug.

pull/1698/head
SkyeBeFreeman 2 months ago committed by Haotian Zhang
parent 8c8b440c0e
commit 103ecd4943

@ -26,5 +26,10 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
</dependencies>
</project>

@ -72,6 +72,8 @@ public final class TsfCoreEnvironmentPostProcessor implements EnvironmentPostPro
String polarisAdminPort = environment.getProperty("polaris_admin_port");
if (StringUtils.isNotBlank(polarisAdminPort)) {
defaultProperties.put("spring.cloud.polaris.lossless.enabled", environment.getProperty("spring.cloud.polaris.lossless.enabled", "true"));
// for tsf health check.
defaultProperties.put("spring.cloud.polaris.stat.enabled", environment.getProperty("spring.cloud.polaris.stat.enabled", "true"));
}
String tsfPreferIpv6 = environment.getProperty("tsf_prefer_ipv6");

Loading…
Cancel
Save