Skip to content

Commit 591aa44

Browse files
authored
fix nits from #501 (#503)
1 parent f1a9187 commit 591aa44

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Sources/AsyncHTTPClient/ConnectionPool.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ enum ConnectionPool {
7474
var hasher = Hasher()
7575
self.tlsConfiguration?.hash(into: &hasher)
7676
let hash = hasher.finalize()
77-
var hostDescription = ""
77+
let hostDescription: String
7878
switch self.connectionTarget {
7979
case .ipAddress(let serialization, let addr):
8080
hostDescription = "\(serialization):\(addr.port!)"

Sources/AsyncHTTPClient/ConnectionPool/ChannelHandler/HTTP1ProxyConnectHandler.swift

+5-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ final class HTTP1ProxyConnectHandler: ChannelDuplexHandler, RemovableChannelHand
4545
return self.proxyEstablishedPromise?.futureResult
4646
}
4747

48-
convenience
49-
init(target: ConnectionTarget,
50-
proxyAuthorization: HTTPClient.Authorization?,
51-
deadline: NIODeadline) {
48+
convenience init(
49+
target: ConnectionTarget,
50+
proxyAuthorization: HTTPClient.Authorization?,
51+
deadline: NIODeadline
52+
) {
5253
let targetHost: String
5354
let targetPort: Int
5455
switch target {

0 commit comments

Comments
 (0)