Skip to content

Commit

Permalink
Move AbstractLifecycleExecutor to core module
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Nov 4, 2023
1 parent d618295 commit f4c2578
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ public final void start() {
runBlocking();
}

/**
* Run blocking.
*/
protected abstract void runBlocking();

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected void runBlocking() {
int times = reconnectTimes.incrementAndGet();
log.error("Connect failed, reconnect times={}", times, ex);
if (isRunning()) {
Thread.sleep(5000);
Thread.sleep(5000L);
}
if (times >= 5) {
throw new IngestException(ex);
Expand Down

0 comments on commit f4c2578

Please sign in to comment.