优化网格策略

This commit is contained in:
tony 2026-07-09 16:21:02 +08:00
parent 1e38b457f1
commit 8e7e1075f7
2 changed files with 3 additions and 3 deletions

View File

@ -13,9 +13,9 @@ import java.net.Proxy;
public class CommonConstant {
/** 全局 HTTP 代理 */
public static final Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 7897));
// public static final Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 7897));
public static final HttpClient httpClient = HttpClient.builder().proxy(proxy).build();
public static final HttpClient httpClient = HttpClient.builder().build();
public static final WebSocketManager webSocketManager = new WebSocketManager(httpClient);

View File

@ -156,7 +156,7 @@ public class AutoGridStrategy extends BaseStrategy {
@Override
public void onMessage(String connectionId, String message) {
logger.debug("WebSocket 收到消息:{}", message);
// logger.debug("WebSocket 收到消息:{}", message);
if ("pong".equals(message)) {
return;
}