Skip to content

Commit eaa59bc

Browse files
Use a proper type
1 parent 48e63cc commit eaa59bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/amazonbedrock/client/AmazonBedrockUnifiedStreamingChatProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ private boolean upstreamIsRunning() {
280280
}
281281

282282
private void requestOnMlThread(long n) {
283-
var currentThreadPool = EsExecutors.executorName(Thread.currentThread().getName());
283+
var currentThreadPool = EsExecutors.executorName(Thread.currentThread());
284284
if (UTILITY_THREAD_POOL_NAME.equalsIgnoreCase(currentThreadPool)) {
285285
upstream.request(n);
286286
} else {

0 commit comments

Comments
 (0)