chore(tutorials): Add another .await after client connect call (#112)

This commit is contained in:
Koki Kato
2019-11-02 12:15:45 -04:00
committed by Lucio Franco
parent 46bb2bf2a4
commit 0f5059a5ee
+1 -1
View File
@@ -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<dyn std::error::Error>> {
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(),