From 2d18dba40a3dc5966d94df773ea5c97de2f826f4 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 16 Mar 2018 12:28:08 -0700 Subject: [PATCH] fix compilation --- src/client/connector.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/connector.rs b/src/client/connector.rs index bce8aa98..5a457236 100644 --- a/src/client/connector.rs +++ b/src/client/connector.rs @@ -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) { @@ -254,7 +254,7 @@ impl Handler 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 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)))