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

pull/1352/head
Fishtail 1 year ago committed by GitHub
parent 82f427572a
commit 9a83bc5c00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -14,3 +14,5 @@
- [refactor:let the configuration SDK context stand alone.](https://github.com/Tencent/spring-cloud-tencent/pull/1344)
- [fix: fix lossless deregister failed when no healthcheck configured](https://github.com/Tencent/spring-cloud-tencent/pull/1345)
- [feat:add zero protection.](https://github.com/Tencent/spring-cloud-tencent/pull/1346)
- [fix:fix no registry when lossless is disabled.](https://github.com/Tencent/spring-cloud-tencent/pull/1347)

@ -103,7 +103,7 @@
<!-- Maven Plugin Versions -->
<jacoco.version>0.8.12</jacoco.version>
<maven-source-plugin.version>3.2.0</maven-source-plugin.version>
<flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version>
<flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
<maven-shade-plugin.version>3.4.1</maven-shade-plugin.version>

@ -74,7 +74,7 @@
<revision>1.14.0-2021.0.9-SNAPSHOT</revision>
<!-- Polaris SDK version -->
<polaris.version>1.15.5-SNAPSHOT</polaris.version>
<polaris.version>1.15.6</polaris.version>
<!-- Dependencies -->
<guava.version>32.0.1-jre</guava.version>
@ -85,12 +85,13 @@
<byte-buddy.version>1.12.10</byte-buddy.version>
<jackson.version>2.13.5</jackson.version>
<protobuf-java.version>3.21.7</protobuf-java.version>
<okio.version>3.0.0</okio.version>
<system-stubs-jupiter.version>2.0.2</system-stubs-jupiter.version>
<!-- Maven Plugin Versions -->
<maven-javadoc-plugin.verison>3.3.0</maven-javadoc-plugin.verison>
<maven-source-plugin.version>3.2.0</maven-source-plugin.version>
<flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version>
<flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
</properties>

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