Skip to content

Commit 9a83bc5

Browse files
authored
fix:fix no registry when lossless is disabled. (#1347)
1 parent 82f4275 commit 9a83bc5

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@
1414
- [refactor:let the configuration SDK context stand alone.](https://github.com/Tencent/spring-cloud-tencent/pull/1344)
1515
- [fix: fix lossless deregister failed when no healthcheck configured](https://github.com/Tencent/spring-cloud-tencent/pull/1345)
1616
- [feat:add zero protection.](https://github.com/Tencent/spring-cloud-tencent/pull/1346)
17+
- [fix:fix no registry when lossless is disabled.](https://github.com/Tencent/spring-cloud-tencent/pull/1347)
18+

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
<!-- Maven Plugin Versions -->
104104
<jacoco.version>0.8.12</jacoco.version>
105105
<maven-source-plugin.version>3.2.0</maven-source-plugin.version>
106-
<flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version>
106+
<flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
107107
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
108108
<maven-shade-plugin.version>3.4.1</maven-shade-plugin.version>
109109

spring-cloud-tencent-dependencies/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<revision>1.14.0-2021.0.9-SNAPSHOT</revision>
7575

7676
<!-- Polaris SDK version -->
77-
<polaris.version>1.15.5-SNAPSHOT</polaris.version>
77+
<polaris.version>1.15.6</polaris.version>
7878

7979
<!-- Dependencies -->
8080
<guava.version>32.0.1-jre</guava.version>
@@ -85,12 +85,13 @@
8585
<byte-buddy.version>1.12.10</byte-buddy.version>
8686
<jackson.version>2.13.5</jackson.version>
8787
<protobuf-java.version>3.21.7</protobuf-java.version>
88+
<okio.version>3.0.0</okio.version>
8889
<system-stubs-jupiter.version>2.0.2</system-stubs-jupiter.version>
8990

9091
<!-- Maven Plugin Versions -->
9192
<maven-javadoc-plugin.verison>3.3.0</maven-javadoc-plugin.verison>
9293
<maven-source-plugin.version>3.2.0</maven-source-plugin.version>
93-
<flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version>
94+
<flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
9495
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
9596
</properties>
9697

spring-cloud-tencent-plugin-starters/spring-cloud-tencent-lossless-plugin/src/main/java/com/tencent/cloud/plugin/lossless/LosslessRegistryAspect.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ public void deregisterPointcut() {
7373

7474
@Around("registerPointcut()")
7575
public Object invokeRegister(ProceedingJoinPoint joinPoint) throws Throwable {
76+
if (!losslessProperties.isEnabled()) {
77+
return joinPoint.proceed();
78+
}
7679

7780
// web started, get port from registration
7881
BaseInstance instance = SpringCloudLosslessActionProvider.getBaseInstance(registration, registrationTransformer);

0 commit comments

Comments
 (0)