From c649cff2a7cd12668680af8b73a71b81188ecbec Mon Sep 17 00:00:00 2001
From: kowhi <54210721+kowhi@users.noreply.github.com>
Date: Tue, 29 Apr 2025 10:08:24 +0800
Subject: [PATCH] upgrade retrofit version to 2.9.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
修复如下报错(okttp):
okhttp3.OkHttpClient : A connection to https://ws.okx.com:8443/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
参考:https://github.com/square/okhttp/issues/4399
---
okex-java-sdk-api-v5/pom.xml | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/okex-java-sdk-api-v5/pom.xml b/okex-java-sdk-api-v5/pom.xml
index 5a1cbcad..aaf84d50 100644
--- a/okex-java-sdk-api-v5/pom.xml
+++ b/okex-java-sdk-api-v5/pom.xml
@@ -12,7 +12,7 @@
1.8
4.1.36.Final
3.10.0
- 2.3.0
+ 2.9.0
1.2.46
3.7
3.2.2
@@ -95,15 +95,10 @@
netty-all
4.1.36.Final
-
- com.squareup.okhttp3
- okhttp
- 3.10.0
-
com.squareup.retrofit2
retrofit
- 2.3.0
+ 2.9.0
org.slf4j