Skip to content

Commit 5a3b692

Browse files
fix: the heartbeat task is changed to use scheduleAtFixedRate. (#649)
Co-authored-by: shedfreewu <[email protected]>
1 parent 0ee9b9c commit 5a3b692

File tree

1 file changed

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

1 file changed

+1
-1
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);

0 commit comments

Comments
 (0)