Skip to content

Commit 9a07cb3

Browse files
committed
docs: fixed comments
1 parent e353b83 commit 9a07cb3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/dev/openfga/sdk/util/ExponentialBackoff.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static Duration calculateDelay(int retryCount) {
4444
return Duration.ZERO;
4545
}
4646

47-
// Calculate base delay: 2^retryCount * 500ms
47+
// Calculate base delay: 2^retryCount * 100ms
4848
long baseDelayMs = (long) Math.pow(2, retryCount) * BASE_DELAY_MS;
4949

5050
// Cap at maximum delay
@@ -77,7 +77,7 @@ public static Duration calculateDelay(int retryCount, Random random) {
7777
return Duration.ZERO;
7878
}
7979

80-
// Calculate base delay: 2^retryCount * 500ms
80+
// Calculate base delay: 2^retryCount * 100ms
8181
long baseDelayMs = (long) Math.pow(2, retryCount) * BASE_DELAY_MS;
8282

8383
// Cap at maximum delay

src/test/java/dev/openfga/sdk/api/client/HttpRequestAttemptRetryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ void shouldUseExponentialBackoffWhenNoRetryAfterHeader() throws Exception {
277277
// Verify both requests were made
278278
wireMockServer.verify(2, getRequestedFor(urlEqualTo("/test")));
279279

280-
// Verify some delay occurred (exponential backoff should add at least 500ms for first retry)
280+
// Verify some delay occurred (exponential backoff should add at least 100ms for first retry)
281281
// Note: Using a generous range due to test timing variability
282282
assertThat(endTime - startTime).isGreaterThan(400L);
283283
}

0 commit comments

Comments
 (0)