From 0f5059a5ee30531cf57ce7853b482a9653547958 Mon Sep 17 00:00:00 2001 From: Koki Kato Date: Sun, 3 Nov 2019 01:15:45 +0900 Subject: [PATCH] chore(tutorials): Add another .await after client connect call (#112) --- tonic-examples/helloworld-tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tonic-examples/helloworld-tutorial.md b/tonic-examples/helloworld-tutorial.md index 8c2d28c..0644362 100644 --- a/tonic-examples/helloworld-tutorial.md +++ b/tonic-examples/helloworld-tutorial.md @@ -266,7 +266,7 @@ The client is much simpler than the server as we don't need to implement any ser ```rust #[tokio::main] async fn main() -> Result<(), Box> { - let mut client = GreeterClient::connect("http://[::1]:50051")?; + let mut client = GreeterClient::connect("http://[::1]:50051").await?; let request = tonic::Request::new(HelloRequest { name: "Tonic".into(),