Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi authored and wendigo committed Nov 29, 2023
1 parent f94416d commit 4345db9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2146,10 +2146,10 @@ private static void compactTableAndWait(CompactionMode compactMode, String table
log.info("Running %s compaction on %s", compactMode, tableName);

Failsafe.with(
RetryPolicy.builder()
.withMaxDuration(java.time.Duration.ofMillis(timeout.toMillis()))
.withMaxAttempts(Integer.MAX_VALUE) // limited by MaxDuration
.build())
RetryPolicy.builder()
.withMaxDuration(java.time.Duration.ofMillis(timeout.toMillis()))
.withMaxAttempts(Integer.MAX_VALUE) // limited by MaxDuration
.build())
.onFailure(event -> {
throw new IllegalStateException(format("Could not compact table %s in %d retries", tableName, event.getAttemptCount()), event.getException());
})
Expand Down

0 comments on commit 4345db9

Please sign in to comment.