mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-06-10 23:47:29 +00:00
Revert "fix(resource): ReqIpUtil 使用统一 Vertx 单例"
This reverts commit 1fca578c07.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package cn.qaiu.util;
|
||||
|
||||
import cn.qaiu.WebClientVertxInit;
|
||||
import io.vertx.core.AsyncResult;
|
||||
import io.vertx.core.MultiMap;
|
||||
import io.vertx.core.Vertx;
|
||||
@@ -44,11 +43,11 @@ public class ReqIpUtil {
|
||||
|
||||
}
|
||||
|
||||
// 使用统一的 Vertx 单例,避免重复创建实例
|
||||
private final Vertx vertx = WebClientVertxInit.get();
|
||||
private final WebClient webClient = WebClient.create(vertx);
|
||||
|
||||
Vertx vertx = Vertx.vertx();
|
||||
WebClient webClient = WebClient.create(vertx);
|
||||
// 发送GET请求
|
||||
private final WebClientSession webClientSession = WebClientSession.create(webClient);
|
||||
WebClientSession webClientSession = WebClientSession.create(webClient);
|
||||
|
||||
|
||||
public void exec() {
|
||||
|
||||
Reference in New Issue
Block a user