Skip to content

Commit

Permalink
add try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
qifanwang committed Sep 19, 2024
1 parent bd3c1f5 commit 938b6d4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ public void postConstruct() {
scheduledExecutorService.scheduleWithFixedDelay(new Runnable() {
@Override
public void run() {
sync();
try {
sync();
} catch (Throwable e) {
logger.error("[sync]", e);
}
}
}, consoleConfig.getOuterClientSyncInterval(), consoleConfig.getOuterClientSyncInterval(), TimeUnit.MILLISECONDS);
}
Expand Down

0 comments on commit 938b6d4

Please sign in to comment.