Use tower-reconnect

This commit is contained in:
Lucio Franco
2019-08-31 02:14:45 -04:00
parent 2ce4a7969e
commit 644cc310f7
8 changed files with 149 additions and 48 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ const SPECIAL_TEST_STATUS_MESSAGE: &'static str =
pub async fn create(addr: SocketAddr) -> Result<TestClient, Box<dyn std::error::Error>> {
let origin = http::Uri::from_shared(format!("http://{}", addr).into()).unwrap();
let svc = Client::connect(origin).await?;
let svc = Client::connect(origin)?;
Ok(TestServiceClient::new(svc))
}
@@ -35,7 +35,7 @@ pub async fn create_unimplemented(
) -> Result<UnimplementedClient, Box<dyn std::error::Error>> {
let origin = http::Uri::from_shared(format!("http://{}", addr).into()).unwrap();
let svc = Client::connect(origin).await?;
let svc = Client::connect(origin)?;
Ok(UnimplementedServiceClient::new(svc))
}