|
17 | 17 | package org.asynchttpclient; |
18 | 18 |
|
19 | 19 | import static org.asynchttpclient.util.Assertions.assertNotNull; |
20 | | -import io.netty.channel.EventLoopGroup; |
21 | | -import io.netty.util.HashedWheelTimer; |
22 | | -import io.netty.util.Timer; |
23 | 20 |
|
24 | 21 | import java.util.concurrent.atomic.AtomicBoolean; |
25 | 22 | import java.util.function.Predicate; |
|
30 | 27 | import org.asynchttpclient.filter.RequestFilter; |
31 | 28 | import org.asynchttpclient.handler.resumable.ResumableAsyncHandler; |
32 | 29 | import org.asynchttpclient.netty.channel.ChannelManager; |
33 | | -import org.asynchttpclient.netty.channel.ConnectionSemaphore; |
34 | 30 | import org.asynchttpclient.netty.request.NettyRequestSender; |
35 | 31 | import org.slf4j.Logger; |
36 | 32 | import org.slf4j.LoggerFactory; |
37 | 33 |
|
| 34 | +import io.netty.channel.EventLoopGroup; |
| 35 | +import io.netty.util.HashedWheelTimer; |
| 36 | +import io.netty.util.Timer; |
| 37 | + |
38 | 38 | /** |
39 | 39 | * Default and threadsafe implementation of {@link AsyncHttpClient}. |
40 | 40 | */ |
@@ -83,8 +83,7 @@ public DefaultAsyncHttpClient(AsyncHttpClientConfig config) { |
83 | 83 | nettyTimer = allowStopNettyTimer ? newNettyTimer() : config.getNettyTimer(); |
84 | 84 |
|
85 | 85 | channelManager = new ChannelManager(config, nettyTimer); |
86 | | - ConnectionSemaphore connectionSemaphore = ConnectionSemaphore.newConnectionSemaphore(config); |
87 | | - requestSender = new NettyRequestSender(config, channelManager, connectionSemaphore, nettyTimer, new AsyncHttpClientState(closed)); |
| 86 | + requestSender = new NettyRequestSender(config, channelManager, nettyTimer, new AsyncHttpClientState(closed)); |
88 | 87 | channelManager.configureBootstraps(requestSender); |
89 | 88 | } |
90 | 89 |
|
|
0 commit comments