Switch to using endpoint

This commit is contained in:
Lucio Franco
2019-09-02 18:11:36 -04:00
parent 2fb4eb0174
commit b82439af17
14 changed files with 180 additions and 154 deletions
+2 -3
View File
@@ -8,9 +8,8 @@ pub mod hello_world {
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let origin = vec![
http::Uri::from_static("http://[::1]:50051"),
http::Uri::from_static("http://[::1]:50051"),
http::Uri::from_static("http://[::1]:50051"),
http::Uri::from_static("http://[::1]:50051").into(),
];
let svc = Channel::builder().balance_list(origin)?;