Update hyper and other fixes

This commit is contained in:
Lucio Franco
2019-08-30 23:30:12 -04:00
parent 91a3c0965a
commit 0393172f95
8 changed files with 10 additions and 15 deletions
+2 -2
View File
@@ -13,14 +13,14 @@ name = "server"
path = "src/bin/server.rs"
[dependencies]
tokio = "=0.2.0-alpha.2"
tokio = "=0.2.0-alpha.4"
tonic = { path = "../tonic" }
prost = "0.5"
prost-derive = "0.5"
bytes = "0.4"
http = "0.1"
futures-util-preview = "=0.3.0-alpha.18"
hyper = { path = "../../hyper" }
hyper = { git = "https://github.com/hyperium/hyper" }
console = "0.7"
structopt = "0.2"
+2 -2
View File
@@ -29,7 +29,7 @@ pub async fn create(addr: SocketAddr) -> Result<Client, Box<dyn std::error::Erro
let origin = http::Uri::from_shared(format!("http://{}", addr).into()).unwrap();
let settings = Builder::new().http2_only(true).clone();
let mut maker = Connect::new(HttpConnector::new(1), settings);
let mut maker = Connect::new(HttpConnector::new(), settings);
let svc = maker.make_service(origin.clone()).await?;
let svc = AddOrigin::new(svc, origin);
@@ -43,7 +43,7 @@ pub async fn create_unimplemented(
let origin = http::Uri::from_shared(format!("http://{}", addr).into()).unwrap();
let settings = Builder::new().http2_only(true).clone();
let mut maker = Connect::new(HttpConnector::new(1), settings);
let mut maker = Connect::new(HttpConnector::new(), settings);
let svc = maker.make_service(origin.clone()).await?;
let svc = AddOrigin::new(svc, origin);