fix:fix no registry when lossless is disabled. (#1311)

pull/1314/head
Haotian Zhang 6 months ago committed by GitHub
parent d34474b784
commit 557cf7890e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,3 +15,4 @@
- [fix: fix lossless deregister failed when no healthcheck configured](https://github.com/Tencent/spring-cloud-tencent/pull/1281) - [fix: fix lossless deregister failed when no healthcheck configured](https://github.com/Tencent/spring-cloud-tencent/pull/1281)
- [fix:fix ApplicationContextAwareUtils NPE bug.](https://github.com/Tencent/spring-cloud-tencent/pull/1293) - [fix:fix ApplicationContextAwareUtils NPE bug.](https://github.com/Tencent/spring-cloud-tencent/pull/1293)
- [feat:upgrade jacoco version.](https://github.com/Tencent/spring-cloud-tencent/pull/1309) - [feat:upgrade jacoco version.](https://github.com/Tencent/spring-cloud-tencent/pull/1309)
- [fix:fix no registry when lossless is disabled.](https://github.com/Tencent/spring-cloud-tencent/pull/1311)

@ -89,7 +89,7 @@
<properties> <properties>
<!-- Project revision --> <!-- Project revision -->
<revision>1.14.0-2022.0.5.RC1</revision> <revision>1.14.0-2022.0.5-SNAPSHOT</revision>
<!-- Spring Framework --> <!-- Spring Framework -->
<spring.framework.version>6.0.17</spring.framework.version> <spring.framework.version>6.0.17</spring.framework.version>

@ -71,7 +71,7 @@
<properties> <properties>
<!-- Project revision --> <!-- Project revision -->
<revision>1.14.0-2022.0.5.RC1</revision> <revision>1.14.0-2022.0.5-SNAPSHOT</revision>
<!-- Polaris SDK version --> <!-- Polaris SDK version -->
<polaris.version>1.15.6</polaris.version> <polaris.version>1.15.6</polaris.version>

@ -73,6 +73,9 @@ public class LosslessRegistryAspect {
@Around("registerPointcut()") @Around("registerPointcut()")
public Object invokeRegister(ProceedingJoinPoint joinPoint) throws Throwable { public Object invokeRegister(ProceedingJoinPoint joinPoint) throws Throwable {
if (!losslessProperties.isEnabled()) {
return joinPoint.proceed();
}
// web started, get port from registration // web started, get port from registration
BaseInstance instance = SpringCloudLosslessActionProvider.getBaseInstance(registration, registrationTransformer); BaseInstance instance = SpringCloudLosslessActionProvider.getBaseInstance(registration, registrationTransformer);

Loading…
Cancel
Save