Skip to content

Commit aefafe7

Browse files
committed
clean up
1 parent 90dabf8 commit aefafe7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/com/uid2/operator/vertx/OperatorShutdownHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ public OperatorShutdownHandler(Duration attestShutdownWaitTime, Duration saltShu
4343
}
4444

4545
public void handleSaltRetrievalResponse(Boolean expired) {
46-
if (!expired) {
46+
if(!expired) {
4747
saltFailureStartTime.set(null);
4848
} else {
4949
logSaltFailureAtInterval();
5050
Instant t = saltFailureStartTime.get();
5151
if (t == null) {
5252
saltFailureStartTime.set(clock.instant());
53-
} else if (Duration.between(t, clock.instant()).compareTo(this.saltShutdownWaitTime) > 0) {
53+
} else if(Duration.between(t, clock.instant()).compareTo(this.saltShutdownWaitTime) > 0) {
5454
LOGGER.error("salts have been in expired state for too long. shutting down operator");
5555
this.shutdownService.Shutdown(1);
5656
}
@@ -59,7 +59,7 @@ public void handleSaltRetrievalResponse(Boolean expired) {
5959

6060
public void logSaltFailureAtInterval() {
6161
Instant t = lastSaltFailureLogTime.get();
62-
if (t == null || clock.instant().isAfter(t.plus(SALT_FAILURE_LOG_INTERVAL_MINUTES, ChronoUnit.MINUTES))) {
62+
if(t == null || clock.instant().isAfter(t.plus(SALT_FAILURE_LOG_INTERVAL_MINUTES, ChronoUnit.MINUTES))) {
6363
LOGGER.error("all salts are expired");
6464
lastSaltFailureLogTime.set(Instant.now());
6565
}

0 commit comments

Comments
 (0)