Skip to content

Commit

Permalink
fix error in routeguide tutorial (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
alce authored and LucioFranco committed Nov 1, 2019
1 parent c9b7523 commit 46bb2bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tonic-examples/routeguide-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl server::RouteGuide for RouteGuide {
unimplemented!()
}

type RouteChatStream = Pin<Box<dyn Stream<Item = Result<RouteNote, Status>> + Send + 'static>>;
type RouteChatStream = Pin<Box<dyn Stream<Item = Result<RouteNote, Status>> + Send + Sync + 'static>>;

async fn route_chat(
&self,
Expand Down Expand Up @@ -521,7 +521,7 @@ async fn route_chat(

Ok(Response::new(Box::pin(output)
as Pin<
Box<dyn Stream<Item = Result<RouteNote, Status>> + Send + 'static>,
Box<dyn Stream<Item = Result<RouteNote, Status>> + Send + Sync + 'static>,
>))

}
Expand Down Expand Up @@ -658,7 +658,6 @@ Here's where we call the server-side streaming method `list_features`, which ret
geographical `Feature`s.

```rust
use futures::TryStreamExt;
use tonic::transport::Channel;
use std::error::Error;
```
Expand Down

0 comments on commit 46bb2bf

Please sign in to comment.