1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 01:52:57 +01:00

fix compilation

This commit is contained in:
Nikolay Kim 2018-03-16 12:28:08 -07:00
parent d2693d58a8
commit 2d18dba40a

View File

@ -192,7 +192,7 @@ impl ClientConnector {
/// }
/// ```
pub fn with_connector(connector: SslConnector) -> ClientConnector {
ClientConnector { connector }
ClientConnector { connector, pool: Rc::new(Pool::new()) }
}
fn collect(&mut self, ctx: &mut Context<Self>) {
@ -254,7 +254,7 @@ impl Handler<Connect> for ClientConnector {
Ok(stream) => {
if proto.is_secure() {
fut::Either::A(
_act.connector.connect_async(&host, stream)
_act.connector.connect_async(&key.host, stream)
.map_err(ClientConnectorError::SslError)
.map(|stream| Connection::new(
key, pool, Box::new(stream)))
@ -272,7 +272,7 @@ impl Handler<Connect> for ClientConnector {
Ok(stream) => {
if proto.is_secure() {
fut::Either::A(
_act.connector.connect_async(&host, stream)
_act.connector.connect_async(&key.host, stream)
.map_err(ClientConnectorError::SslError)
.map(|stream| Connection::new(
key, pool, Box::new(stream)))