mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-05-03 07:32:29 +00:00
rename variable
This commit is contained in:
@@ -513,13 +513,13 @@ class HTTP1ConnectionProvider {
|
||||
}
|
||||
|
||||
private func makeChannel(preference: HTTPClient.EventLoopPreference) -> EventLoopFuture<Channel> {
|
||||
let eventLoop = preference.bestEventLoop ?? self.eventLoop
|
||||
let channelEventLoop = preference.bestEventLoop ?? self.eventLoop
|
||||
let requiresTLS = self.key.scheme.requiresTLS
|
||||
let bootstrap: NIOClientTCPBootstrap
|
||||
do {
|
||||
bootstrap = try NIOClientTCPBootstrap.makeHTTPClientBootstrapBase(on: eventLoop, host: self.key.host, port: self.key.port, requiresTLS: requiresTLS, configuration: self.configuration)
|
||||
bootstrap = try NIOClientTCPBootstrap.makeHTTPClientBootstrapBase(on: channelEventLoop, host: self.key.host, port: self.key.port, requiresTLS: requiresTLS, configuration: self.configuration)
|
||||
} catch {
|
||||
return eventLoop.makeFailedFuture(error)
|
||||
return channelEventLoop.makeFailedFuture(error)
|
||||
}
|
||||
|
||||
let channel: EventLoopFuture<Channel>
|
||||
@@ -564,7 +564,7 @@ class HTTP1ConnectionProvider {
|
||||
error = HTTPClient.NWErrorHandler.translateError(error)
|
||||
}
|
||||
#endif
|
||||
return eventLoop.makeFailedFuture(error)
|
||||
return channelEventLoop.makeFailedFuture(error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user