Skip to content

Commit 57c6753

Browse files
committed
chore: formatting
1 parent a6227ff commit 57c6753

File tree

1 file changed

+4
-1
lines changed
  • components/http/okHttp/src/main/java/com/microsoft/kiota/http/middleware

1 file changed

+4
-1
lines changed

components/http/okHttp/src/main/java/com/microsoft/kiota/http/middleware/RetryHandler.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ long getRetryAfter(Response response, long delay, int executionCount) {
139139
retryDelay = exponentialBackOffDelay(delay, executionCount);
140140
}
141141
long result =
142-
(long) Math.min(retryDelay, (double)RetryHandlerOption.MAX_DELAY * DELAY_MILLISECONDS);
142+
(long)
143+
Math.min(
144+
retryDelay,
145+
(double) RetryHandlerOption.MAX_DELAY * DELAY_MILLISECONDS);
143146
// Ensure minimum delay if retry interval is negative
144147
if (result < 0) {
145148
result = 1 + (long) (Math.random() * 9); // Random delay between 1-10ms

0 commit comments

Comments
 (0)