Skip to content

Commit b58bc15

Browse files
committed
makeSucceededFuture(()) -> makeSucceededVoidFuture()
1 parent 7aec48b commit b58bc15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: Sources/AsyncHTTPClient/ConnectionPool/HTTPConnectionPool+Factory.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ extension HTTPConnectionPool.ConnectionFactory {
249249
.channelInitializer { channel in
250250
do {
251251
try channel.pipeline.syncOperations.addHandler(HTTPClient.NWErrorHandler())
252-
return channel.eventLoop.makeSucceededFuture(())
252+
return channel.eventLoop.makeSucceededVoidFuture()
253253
} catch {
254254
return channel.eventLoop.makeFailedFuture(error)
255255
}
@@ -325,7 +325,7 @@ extension HTTPConnectionPool.ConnectionFactory {
325325
// TLS handshake is part of the TS connection bootstrap. If the TLS
326326
// handshake times out the complete connection creation will be failed.
327327
try channel.pipeline.syncOperations.addHandler(TLSEventsHandler(deadline: nil))
328-
return channel.eventLoop.makeSucceededFuture(())
328+
return channel.eventLoop.makeSucceededVoidFuture()
329329
} catch {
330330
return channel.eventLoop.makeFailedFuture(error)
331331
}
@@ -358,7 +358,7 @@ extension HTTPConnectionPool.ConnectionFactory {
358358

359359
try sync.addHandler(sslHandler)
360360
try sync.addHandler(tlsEventHandler)
361-
return channel.eventLoop.makeSucceededFuture(())
361+
return channel.eventLoop.makeSucceededVoidFuture()
362362
} catch {
363363
return channel.eventLoop.makeFailedFuture(error)
364364
}

0 commit comments

Comments
 (0)