Formating and remove unused variable

This commit is contained in:
eha sah 2025-04-14 16:12:56 -07:00
parent 37562aa082
commit 2f17a68b2a

View file

@ -80,12 +80,6 @@ public final class LeaseAssignmentManager {
*/
private static final int DEFAULT_FAILURE_COUNT_TO_SWITCH_LEADER = 3;
/**
* Default multiplier for LAM frequency with respect to leaseDurationMillis (lease failover millis).
* If leaseDurationMillis is 10000 millis, default LAM frequency is 20000 millis.
*/
private static final int DEFAULT_LEASE_ASSIGNMENT_MANAGER_FREQ_MULTIPLIER = 2;
private static final String FORCE_LEADER_RELEASE_METRIC_NAME = "ForceLeaderRelease";
/**
@ -130,7 +124,10 @@ public final class LeaseAssignmentManager {
// so reset the flag to refresh the state before processing during a restart of LAM.
tookOverLeadershipInThisRun = false;
managerFuture = executorService.scheduleWithFixedDelay(
this::performAssignment, 0L, (int) (leaseAssignmentIntervalMillis), TimeUnit.MILLISECONDS);
this::performAssignment,
0L,
(int) (leaseAssignmentIntervalMillis),
TimeUnit.MILLISECONDS);
log.info("Started LeaseAssignmentManager");
return;
}