Implement option to set num of DNS threads in async ClientBuilder
This commit is contained in:
		| @@ -22,8 +22,8 @@ pub struct Connector { | ||||
| } | ||||
|  | ||||
| impl Connector { | ||||
|     pub fn new(tls: TlsConnector, proxies: Arc<Vec<Proxy>>, handle: &Handle) -> Connector { | ||||
|         let mut http = HttpConnector::new(4, handle); | ||||
|     pub fn new(threads: usize, tls: TlsConnector, proxies: Arc<Vec<Proxy>>, handle: &Handle) -> Connector { | ||||
|         let mut http = HttpConnector::new(threads, handle); | ||||
|         http.enforce_http(false); | ||||
|         let https = HttpsConnector::from((http, tls.clone())); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user