Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
sudiksha27 committed Sep 11, 2020
1 parent 70f806d commit eea6b26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private double fiveMinuteRate(LeaderElectionServiceMetrics leaderElectionRateFor

private boolean isHealthCheckDeactivated() {
healthCheckDeactivated.compareAndSet(true,
(Duration.between(timeCreated, Instant.now()).compareTo(HEALTH_CHECK_DEACTIVATION_PERIOD) < 0));
Duration.between(timeCreated, Instant.now()).compareTo(HEALTH_CHECK_DEACTIVATION_PERIOD) < 0);
return healthCheckDeactivated.get();
}

Expand Down

0 comments on commit eea6b26

Please sign in to comment.