@@ -40,7 +40,7 @@ use crate::{
4040 conn:: TrySendError as ConnTrySendError ,
4141 connect:: { Alpn , Connect , Connected , Connection , TcpConnectOptions } ,
4242 } ,
43- common:: { Exec , Lazy , lazy as hyper_lazy , timer} ,
43+ common:: { Exec , Lazy , lazy, timer} ,
4444 error:: BoxError ,
4545 ext:: {
4646 RequestConfig , RequestHttpVersionPref , RequestProxyMatcher , RequestTcpConnectOptions ,
@@ -589,7 +589,7 @@ where
589589 } ;
590590 let is_ver_h2 = ver == Ver :: Http2 ;
591591 let connector = self . connector . clone ( ) ;
592- hyper_lazy ( move || {
592+ lazy ( move || {
593593 // Try to take a "connecting lock".
594594 //
595595 // If the pool_key is for HTTP/2, and there is already a
@@ -599,8 +599,7 @@ where
599599 Some ( lock) => lock,
600600 None => {
601601 let canceled = e ! ( Canceled ) ;
602- // TODO
603- //crate::Error::new_canceled().with("HTTP/2 connection in progress");
602+ // HTTP/2 connection in progress.
604603 return Either :: Right ( future:: err ( canceled) ) ;
605604 }
606605 } ;
@@ -1094,7 +1093,6 @@ fn is_schema_secure(uri: &Uri) -> bool {
10941093/// # }
10951094/// # fn main() {}
10961095/// ```
1097- #[ cfg_attr( docsrs, doc( cfg( any( feature = "http1" , feature = "http2" ) ) ) ) ]
10981096#[ derive( Clone ) ]
10991097pub struct Builder {
11001098 client_config : Config ,
0 commit comments