Skip to content

Commit

Permalink
adjust logback shutdown delay
Browse files Browse the repository at this point in the history
  • Loading branch information
halibobo1205 committed Aug 14, 2023
1 parent 3ac0795 commit 87c1b5d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public class TronLogShutdownHook extends ShutdownHookBase {
private static final Duration CHECK_SHUTDOWN_DELAY = Duration.buildByMilliseconds(100);

/**
* The check times before shutdown. default is 50
* The check times before shutdown. default is 60000/100 = 600 times.
*/
private Integer check_times = 50;
private final long check_times = 60 * 1000 / CHECK_SHUTDOWN_DELAY.getMilliseconds();

public TronLogShutdownHook() {
}
Expand Down

0 comments on commit 87c1b5d

Please sign in to comment.