File tree 1 file changed +3
-3
lines changed
Sources/AsyncHTTPClient/ConnectionPool
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ extension HTTPConnectionPool.ConnectionFactory {
249
249
. channelInitializer { channel in
250
250
do {
251
251
try channel. pipeline. syncOperations. addHandler ( HTTPClient . NWErrorHandler ( ) )
252
- return channel. eventLoop. makeSucceededFuture ( ( ) )
252
+ return channel. eventLoop. makeSucceededVoidFuture ( )
253
253
} catch {
254
254
return channel. eventLoop. makeFailedFuture ( error)
255
255
}
@@ -325,7 +325,7 @@ extension HTTPConnectionPool.ConnectionFactory {
325
325
// TLS handshake is part of the TS connection bootstrap. If the TLS
326
326
// handshake times out the complete connection creation will be failed.
327
327
try channel. pipeline. syncOperations. addHandler ( TLSEventsHandler ( deadline: nil ) )
328
- return channel. eventLoop. makeSucceededFuture ( ( ) )
328
+ return channel. eventLoop. makeSucceededVoidFuture ( )
329
329
} catch {
330
330
return channel. eventLoop. makeFailedFuture ( error)
331
331
}
@@ -358,7 +358,7 @@ extension HTTPConnectionPool.ConnectionFactory {
358
358
359
359
try sync. addHandler ( sslHandler)
360
360
try sync. addHandler ( tlsEventHandler)
361
- return channel. eventLoop. makeSucceededFuture ( ( ) )
361
+ return channel. eventLoop. makeSucceededVoidFuture ( )
362
362
} catch {
363
363
return channel. eventLoop. makeFailedFuture ( error)
364
364
}
You can’t perform that action at this time.
0 commit comments