added throttling
CI / build (push) Successful in 2m39s

This commit is contained in:
woggioni committed 2025-01-24 16:53:19 +08:00
1 parent 9ce3e7fa0a
commit 423b749db9
47 files changed
+988 -232

No files matched your search

@@ -184,7 +184,7 @@ class GradleBuildCacheClient(private val profile: Configuration.Profile) : AutoC
fun put(key: String, content: ByteArray): CompletableFuture<Unit> {
return sendRequest(profile.serverURI.resolve(key), HttpMethod.PUT, content).thenApply {
val status = it.status()
if (it.status() != HttpResponseStatus.CREATED) {
if (it.status() != HttpResponseStatus.CREATED && it.status() != HttpResponseStatus.OK) {
throw HttpException(status)
}
}