fix(tonic): change connect_lazy to be infallible (#712)

Co-authored-by: Lucio Franco <[email protected]>
This commit is contained in:
Nisheeth Barthwal
2021-10-20 10:47:17 -04:00
committed by GitHub
co-authored by Lucio Franco
parent 53ecc1f85e
commit 2e471548d8
3 changed files with 4 additions and 7 deletions
+1 -3
View File
@@ -63,9 +63,7 @@ async fn connect_lazy_reconnects_after_first_failure() {
let sender = Arc::new(Mutex::new(Some(tx)));
let svc = test_server::TestServer::new(Svc(sender));
let channel = Endpoint::from_static("http://127.0.0.1:1339")
.connect_lazy()
.unwrap();
let channel = Endpoint::from_static("http://127.0.0.1:1339").connect_lazy();
let mut client = TestClient::new(channel);