|
59 | 59 | import io.netty.buffer.ByteBuf;
|
60 | 60 | import io.netty.buffer.ByteBufAllocator;
|
61 | 61 | import io.netty.buffer.ByteBufOutputStream;
|
62 |
| -import io.netty.channel.Channel; |
63 |
| -import io.netty.channel.ChannelFuture; |
64 |
| -import io.netty.channel.ChannelHandlerContext; |
65 |
| -import io.netty.channel.ChannelInboundHandlerAdapter; |
66 |
| -import io.netty.channel.ChannelInitializer; |
67 |
| -import io.netty.channel.ChannelOption; |
68 |
| -import io.netty.channel.ChannelOutboundHandlerAdapter; |
69 |
| -import io.netty.channel.ChannelPromise; |
70 |
| -import io.netty.channel.ConnectTimeoutException; |
71 |
| -import io.netty.channel.EventLoopGroup; |
72 |
| -import io.netty.channel.nio.NioEventLoopGroup; |
| 62 | +import io.netty.channel.*; |
73 | 63 | import io.netty.channel.socket.SocketChannel;
|
74 | 64 | import io.netty.channel.socket.nio.NioSocketChannel;
|
75 | 65 | import io.netty.handler.codec.DecoderException;
|
@@ -248,7 +238,7 @@ public Client(ClientParameters parameters) {
|
248 | 238 | if (b.config().group() == null) {
|
249 | 239 | EventLoopGroup eventLoopGroup;
|
250 | 240 | if (parameters.eventLoopGroup == null) {
|
251 |
| - this.eventLoopGroup = new NioEventLoopGroup(); |
| 241 | + this.eventLoopGroup = Utils.eventLoopGroup(); |
252 | 242 | eventLoopGroup = this.eventLoopGroup;
|
253 | 243 | } else {
|
254 | 244 | this.eventLoopGroup = null;
|
|
0 commit comments