src/client/http_client.rs: s/set_recv_buf_size/set_recv_buffer_size/
This commit is contained in:
parent
c698636a5d
commit
99168f43e6
@ -165,7 +165,7 @@ impl HttpClient {
|
|||||||
|
|
||||||
let mut httpc = hyper::client::HttpConnector::new(1);
|
let mut httpc = hyper::client::HttpConnector::new(1);
|
||||||
httpc.set_nodelay(true); // important for h2 download performance!
|
httpc.set_nodelay(true); // important for h2 download performance!
|
||||||
httpc.set_recv_buf_size(Some(1024*1024)); //important for h2 download performance!
|
httpc.set_recv_buffer_size(Some(1024*1024)); //important for h2 download performance!
|
||||||
httpc.enforce_http(false); // we want https...
|
httpc.enforce_http(false); // we want https...
|
||||||
|
|
||||||
let https = hyper_openssl::HttpsConnector::with_connector(httpc, ssl_connector_builder).unwrap();
|
let https = hyper_openssl::HttpsConnector::with_connector(httpc, ssl_connector_builder).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user