Skip to content

Commit

Permalink
chore(tutorials): Add another .await after client connect call (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalab authored and LucioFranco committed Nov 2, 2019
1 parent 46bb2bf commit 0f5059a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic-examples/helloworld-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 0f5059a

Please sign in to comment.