Skip to content

Commit b1518c5

Browse files
committed
Bump for '03fdaf2'
1 parent 81b68b0 commit b1518c5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lithic-java-core/src/main/kotlin/com/lithic/api/core/http/RetryingHttpClient.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ private constructor(
5656
null
5757
}
5858

59-
Thread.sleep(getRetryBackoffMillis(retries, response))
59+
val backoffMillis = getRetryBackoffMillis(retries, response)
60+
Thread.sleep(backoffMillis)
6061
}
6162
}
6263

@@ -90,7 +91,8 @@ private constructor(
9091
}
9192
}
9293

93-
return sleepAsync(getRetryBackoffMillis(retries, response)).thenCompose {
94+
val backoffMillis = getRetryBackoffMillis(retries, response)
95+
return sleepAsync(backoffMillis).thenCompose {
9496
wrap(httpClient.executeAsync(request))
9597
}
9698
},

0 commit comments

Comments
 (0)