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

pull/1433/head
Haotian Zhang 1 year ago committed by GitHub
parent 3962cafecb
commit f354fcf3fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -13,4 +13,5 @@
- [fix: fix npe when add circuitbreak module without feign.hystrix.enable=true](https://github.com/Tencent/spring-cloud-tencent/pull/1292) - [fix: fix npe when add circuitbreak module without feign.hystrix.enable=true](https://github.com/Tencent/spring-cloud-tencent/pull/1292)
- [fix:fix ApplicationContextAwareUtils NPE bug.](https://github.com/Tencent/spring-cloud-tencent/pull/1295) - [fix:fix ApplicationContextAwareUtils NPE bug.](https://github.com/Tencent/spring-cloud-tencent/pull/1295)
- [fix:fix the ratelimit bug for hoxton](https://github.com/Tencent/spring-cloud-tencent/pull/1301) - [fix:fix the ratelimit bug for hoxton](https://github.com/Tencent/spring-cloud-tencent/pull/1301)
- [feat:upgrade jacoco version.](https://github.com/Tencent/spring-cloud-tencent/pull/1306) - [feat:upgrade jacoco version.](https://github.com/Tencent/spring-cloud-tencent/pull/1306)
- [fix:fix no registry when lossless is disabled.](https://github.com/Tencent/spring-cloud-tencent/pull/1313)

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