File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/java/com/grinply/api/client/websocket/httpclient Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<groupId >io.github.grinply</groupId >
8
8
<artifactId >bybit-java-api</artifactId >
9
- <version >1.0.4 </version >
9
+ <version >1.0.5 </version >
10
10
<name >bybit-java-api</name >
11
11
<packaging >jar</packaging >
12
12
<url >https://github.com/grinply/bybit-java-api</url >
Original file line number Diff line number Diff line change 6
6
import okhttp3 .WebSocket ;
7
7
import okhttp3 .WebSocketListener ;
8
8
9
+ import java .util .concurrent .TimeUnit ;
10
+
9
11
import static com .grinply .api .client .log .Slf4jLoggingInterceptor .HandleLoggingInterceptor ;
10
12
11
13
@ Getter
@@ -23,7 +25,9 @@ public static WebSocketStreamHttpClientSingleton createInstance(boolean debugMod
23
25
}
24
26
25
27
public OkHttpClient createOkHttpClient (boolean debugMode , String logOption ) {
26
- OkHttpClient .Builder clientBuilder = new OkHttpClient .Builder ();
28
+ OkHttpClient .Builder clientBuilder = new OkHttpClient .Builder ()
29
+ .connectTimeout (30 , TimeUnit .SECONDS )
30
+ .readTimeout (30 , TimeUnit .SECONDS );
27
31
if (debugMode ) {
28
32
HandleLoggingInterceptor (clientBuilder , logOption );
29
33
}
You can’t perform that action at this time.
0 commit comments