Skip to content

Commit

Permalink
Change retry times to forever
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Jun 26, 2023
1 parent 2c82cf7 commit 22ec488
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ public interface Constants {
int DEFAULT_SESSION_TIMEOUT = 60 * 1000;

/**
* Default value for the times of retry: 3
* Default value for the times of retry: -1 (forever)
*/
int DEFAULT_REGISTRY_RETRY_TIMES = 3;
int DEFAULT_REGISTRY_RETRY_TIMES = -1;

int DEFAULT_REGISTRY_RECONNECT_PERIOD = 3 * 1000;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void run(Timeout timeout) throws Exception {
// other thread cancel this timeout or stop the timer.
return;
}
if (times > retryTimes) {
if (retryTimes > 0 && times > retryTimes) {
// 1-13 - failed to execute the retrying task.

logger.warn(
Expand Down

0 comments on commit 22ec488

Please sign in to comment.