diff --git a/tonic-examples/helloworld-tutorial.md b/tonic-examples/helloworld-tutorial.md index 43e1619..8c2d28c 100644 --- a/tonic-examples/helloworld-tutorial.md +++ b/tonic-examples/helloworld-tutorial.md @@ -291,7 +291,7 @@ use hello_world::{client::GreeterClient, HelloRequest}; #[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(), diff --git a/tonic-examples/routeguide-tutorial.md b/tonic-examples/routeguide-tutorial.md index a259712..03726e9 100644 --- a/tonic-examples/routeguide-tutorial.md +++ b/tonic-examples/routeguide-tutorial.md @@ -615,7 +615,7 @@ use route_guide::{client::RouteGuideClient, Point, Rectangle, RouteNote}; #[tokio::main] async fn main() -> Result<(), Box> { - let mut client = RouteGuideClient::connect("http://[::1]:10000")?; + let mut client = RouteGuideClient::connect("http://[::1]:10000").await?; Ok(()) }