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

Co-authored-by: Haotian Zhang <skyebefreeman@qq.com>
pull/1389/head
Fishtail 4 months ago committed by GitHub
parent ce0ce68b2f
commit 7443694eaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -13,5 +13,5 @@
- [fix: fix grammar issues for lane router example & optimize the gateway dependency](https://github.com/Tencent/spring-cloud-tencent/pull/1382) - [fix: fix grammar issues for lane router example & optimize the gateway dependency](https://github.com/Tencent/spring-cloud-tencent/pull/1382)
- [refactor:let the configuration SDK context stand alone.](https://github.com/Tencent/spring-cloud-tencent/pull/1383) - [refactor:let the configuration SDK context stand alone.](https://github.com/Tencent/spring-cloud-tencent/pull/1383)
- [fix: fix lossless deregister failed when no healthcheck configured](https://github.com/Tencent/spring-cloud-tencent/pull/1385) - [fix: fix lossless deregister failed when no healthcheck configured](https://github.com/Tencent/spring-cloud-tencent/pull/1385)
- [fix:fix ApplicationContextAwareUtils NPE bug.](https://github.com/Tencent/spring-cloud-tencent/pull/1386)
- [feat:add zero protection.](https://github.com/Tencent/spring-cloud-tencent/pull/1386) - [feat:add zero protection.](https://github.com/Tencent/spring-cloud-tencent/pull/1386)
- [fix:fix no registry when lossless is disabled.](https://github.com/Tencent/spring-cloud-tencent/pull/1388)

@ -74,7 +74,7 @@
<revision>1.14.0-2020.0.6-SNAPSHOT</revision> <revision>1.14.0-2020.0.6-SNAPSHOT</revision>
<!-- Polaris SDK version --> <!-- Polaris SDK version -->
<polaris.version>1.15.5-SNAPSHOT</polaris.version> <polaris.version>1.15.6</polaris.version>
<!-- Dependencies --> <!-- Dependencies -->
<guava.version>32.0.1-jre</guava.version> <guava.version>32.0.1-jre</guava.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