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
+1 -1
View File
@@ -9,7 +9,7 @@ pub mod hello_world {
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let origin = http::Uri::from_static("http://[::1]:50051");
let svc = Client::connect(origin).await?;
let svc = Client::connect(origin)?;
let mut client = hello_world::GreeterClient::new(svc);