fix:fix no registry when lossless is disabled.

pull/1312/head
Haotian Zhang 1 year ago
parent 480920707a
commit 6f30e07d46

@ -13,3 +13,4 @@
- [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)
- [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()")
public Object invokeRegister(ProceedingJoinPoint joinPoint) throws Throwable {
if (!losslessProperties.isEnabled()) {
return joinPoint.proceed();
}
// web started, get port from registration
BaseInstance instance = SpringCloudLosslessActionProvider.getBaseInstance(registration, registrationTransformer);

Loading…
Cancel
Save