Skip to content

Commit 3531aea

Browse files
committed
Formatting
1 parent 2893457 commit 3531aea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/AsyncHTTPClient/ConnectionPool/HTTPConnectionPool+Factory.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)