Skip to content

Commit 505c349

Browse files
stainless-botStainless Bot
authored andcommitted
refactor(internal): inline MoreExecutors usage
chore: unknown commit message
1 parent 54eb041 commit 505c349

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.openai.core.http
22

3-
import com.google.common.util.concurrent.MoreExecutors
43
import com.openai.core.RequestOptions
54
import com.openai.errors.OpenAIIoException
65
import java.io.IOException
@@ -116,8 +115,10 @@ private constructor(
116115
executeWithRetries(request, requestOptions)
117116
}
118117
},
119-
MoreExecutors.directExecutor()
120-
)
118+
) {
119+
// Run in the same thread.
120+
it.run()
121+
}
121122
.thenCompose(Function.identity())
122123
}
123124

0 commit comments

Comments
 (0)