fix error in routeguide tutorial (#111)
This commit is contained in:
committed by
Lucio Franco
parent
c9b7523a5b
commit
46bb2bf2a4
@@ -299,7 +299,7 @@ impl server::RouteGuide for RouteGuide {
|
|||||||
unimplemented!()
|
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(
|
async fn route_chat(
|
||||||
&self,
|
&self,
|
||||||
@@ -521,7 +521,7 @@ async fn route_chat(
|
|||||||
|
|
||||||
Ok(Response::new(Box::pin(output)
|
Ok(Response::new(Box::pin(output)
|
||||||
as Pin<
|
as Pin<
|
||||||
Box<dyn Stream<Item = Result<RouteNote, Status>> + Send + 'static>,
|
Box<dyn Stream<Item = Result<RouteNote, Status>> + Send + Sync + 'static>,
|
||||||
>))
|
>))
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -658,7 +658,6 @@ Here's where we call the server-side streaming method `list_features`, which ret
|
|||||||
geographical `Feature`s.
|
geographical `Feature`s.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
use futures::TryStreamExt;
|
|
||||||
use tonic::transport::Channel;
|
use tonic::transport::Channel;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user