Skip to content

Commit 24d2206

Browse files
committed
refactor(ApiGateway): remove executor from http client builder
The BACKGROUND_TASK_EXECUTOR is no longer needed for the http client configuration, simplifying the setup.
1 parent 72d655c commit 24d2206

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/mindustrytool/handler/ApiGateway.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public ApiGateway(WeakReference<ServerController> context) {
4242
this.context = context;
4343
httpClient = HttpClient.newBuilder()//
4444
.connectTimeout(Duration.ofSeconds(2))//
45-
.executor(context.get().BACKGROUND_TASK_EXECUTOR)
4645
.build();
4746

4847
Log.info("Api gateway handler created: " + this);

0 commit comments

Comments
 (0)