diff --git a/tonic-examples/routeguide-tutorial.md b/tonic-examples/routeguide-tutorial.md index 03726e9..9c1c33a 100644 --- a/tonic-examples/routeguide-tutorial.md +++ b/tonic-examples/routeguide-tutorial.md @@ -299,7 +299,7 @@ impl server::RouteGuide for RouteGuide { unimplemented!() } - type RouteChatStream = Pin> + Send + 'static>>; + type RouteChatStream = Pin> + Send + Sync + 'static>>; async fn route_chat( &self, @@ -521,7 +521,7 @@ async fn route_chat( Ok(Response::new(Box::pin(output) as Pin< - Box> + Send + 'static>, + Box> + Send + Sync + 'static>, >)) } @@ -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; ```