Skip to content

Commit 79d554e

Browse files
fix: the heartbeat task is changed to use scheduleAtFixedRate. (#648)
* fix: the heartbeat task is changed to use scheduleAtFixedRate. * update version --------- Co-authored-by: shedfreewu <[email protected]>
1 parent 5040357 commit 79d554e

File tree

2 files changed

+2
-2
lines changed
  • polaris-discovery/polaris-discovery-client/src/main/java/com/tencent/polaris/discovery/client/flow

2 files changed

+2
-2
lines changed

polaris-discovery/polaris-discovery-client/src/main/java/com/tencent/polaris/discovery/client/flow/RegisterFlow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public InstanceRegisterResponse registerInstance(InstanceRegisterRequest request
6363
createRegisterV2Header());
6464
RegisterState registerState = RegisterStateManager.putRegisterState(sdkContext, request);
6565
if (registerState != null) {
66-
registerState.setTaskFuture(asyncRegisterExecutor.scheduleWithFixedDelay(
66+
registerState.setTaskFuture(asyncRegisterExecutor.scheduleAtFixedRate(
6767
() -> {
6868
try {
6969
doRunHeartbeat(registerState, registerFunction, heartbeatFunction);

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
<properties>
6868
<!-- Project revision -->
69-
<revision>2.0.2.2</revision>
69+
<revision>2.0.2.3</revision>
7070

7171
<timestamp>${maven.build.timestamp}</timestamp>
7272
<skip.maven.deploy>false</skip.maven.deploy>

0 commit comments

Comments
 (0)