Skip to content

Commit

Permalink
Minor fix in routeguide example (#2076)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal authored Nov 30, 2024
1 parent 3ad90f6 commit 1442a59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/routeguide-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ async fn list_features(
&self,
request: Request<Rectangle>,
) -> Result<Response<Self::ListFeaturesStream>, Status> {
let (mut tx, rx) = mpsc::channel(4);
let (tx, rx) = mpsc::channel(4);
let features = self.features.clone();

tokio::spawn(async move {
Expand Down Expand Up @@ -668,7 +668,7 @@ async fn print_features(client: &mut RouteGuideClient<Channel>) -> Result<(), Bo
.into_inner();

while let Some(feature) = stream.message().await? {
println!("NOTE = {:?}", feature);
println!("FEATURE = {:?}", feature);
}

Ok(())
Expand Down
2 changes: 1 addition & 1 deletion examples/src/routeguide/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async fn print_features(client: &mut RouteGuideClient<Channel>) -> Result<(), Bo
.into_inner();

while let Some(feature) = stream.message().await? {
println!("NOTE = {:?}", feature);
println!("FEATURE = {:?}", feature);
}

Ok(())
Expand Down

0 comments on commit 1442a59

Please sign in to comment.