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

pull/1315/head
Haotian Zhang 7 months ago committed by GitHub
parent 480920707a
commit 83b05124a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -13,3 +13,4 @@
- [fix: fix lossless deregister failed when no healthcheck configured](https://github.com/Tencent/spring-cloud-tencent/pull/1279) - [fix: fix lossless deregister failed when no healthcheck configured](https://github.com/Tencent/spring-cloud-tencent/pull/1279)
- [fix:fix ApplicationContextAwareUtils NPE bug.](https://github.com/Tencent/spring-cloud-tencent/pull/1297) - [fix:fix ApplicationContextAwareUtils NPE bug.](https://github.com/Tencent/spring-cloud-tencent/pull/1297)
- [feat:upgrade jacoco version.](https://github.com/Tencent/spring-cloud-tencent/pull/1310) - [feat:upgrade jacoco version.](https://github.com/Tencent/spring-cloud-tencent/pull/1310)
- [fix:fix no registry when lossless is disabled.](https://github.com/Tencent/spring-cloud-tencent/pull/1312)

@ -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