Skip to content

Commit

Permalink
Drop unintended change from PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
baldersheim committed Aug 20, 2024
1 parent 198d0a9 commit 642b34d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ Duration staggeredDelay(Duration interval, String hostname, List<String> cluster

Instant now = clock.instant();
long nodeOffset = clusterHostnames.indexOf(hostname) * interval.toMillis() / clusterHostnames.size();
String c = getClass().getName();
System.out.println("class=" + c);
long maintainerOffset = c.hashCode() % interval.toMillis();
long maintainerOffset = getClass().getName().hashCode() % interval.toMillis();
long totalOffset = nodeOffset + maintainerOffset;
return Duration.ofMillis(Math.floorMod(totalOffset - now.toEpochMilli(), interval.toMillis()));
}
Expand Down

0 comments on commit 642b34d

Please sign in to comment.