chore(example): update guides to 0.1-beta.1 (#198)

* update routeguide

* update helloworld

* depend on tonic beta.1

* Apply suggestions from code review

Co-Authored-By: Lucio Franco <[email protected]>

Co-authored-by: Lucio Franco <[email protected]>
This commit is contained in:
Juan Alvarez
2019-12-19 18:23:25 -05:00
committed by Lucio Franco
co-authored by Lucio Franco
parent 6566b237a1
commit 4e5c6c8f23
7 changed files with 86 additions and 93 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
use hello_world::greeter_client::GreeterClient;
use hello_world::HelloRequest;
pub mod hello_world {
tonic::include_proto!("helloworld");
}
use hello_world::{greeter_client::GreeterClient, HelloRequest};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut client = GreeterClient::connect("http://[::1]:50051").await?;