File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Sources/AsyncHTTPClient/ConnectionPool Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ extension HTTPConnectionPool.ConnectionFactory {
251251 deadline: deadline,
252252 eventLoop: eventLoop
253253 ) . connect ( target: self . key. connectionTarget) . map {
254- . http1_1 ( $0)
254+ . http1_1( $0)
255255 } . cascade ( to: promise)
256256 }
257257
@@ -481,7 +481,8 @@ extension HTTPConnectionPool.ConnectionFactory {
481481 bootstrapFuture. whenComplete { result in
482482 switch result {
483483 case . success( let bootstrap) :
484- bootstrap. connect ( target: self . key. connectionTarget) . flatMap { channel -> EventLoopFuture < ( Channel , String ? ) > in
484+ bootstrap. connect ( target: self . key. connectionTarget) . flatMap {
485+ channel -> EventLoopFuture < ( Channel , String ? ) > in
485486 do {
486487 // if the channel is closed before flatMap is executed, all ChannelHandler are removed
487488 // and TLSEventsHandler is therefore not present either
@@ -511,7 +512,7 @@ extension HTTPConnectionPool.ConnectionFactory {
511512 } . cascade ( to: promise)
512513 case . failure( let error) :
513514 promise. fail ( error)
514- }
515+ }
515516 }
516517 }
517518
You can’t perform that action at this time.
0 commit comments