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