From 1442a59dd88c1a2ec2e83d6ac762bd972a499c63 Mon Sep 17 00:00:00 2001 From: Arjan Singh Bal <46515553+arjan-bal@users.noreply.github.com> Date: Sun, 1 Dec 2024 04:24:05 +0530 Subject: [PATCH] Minor fix in routeguide example (#2076) --- examples/routeguide-tutorial.md | 4 ++-- examples/src/routeguide/client.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/routeguide-tutorial.md b/examples/routeguide-tutorial.md index e3ff6f0ed..d002cff08 100644 --- a/examples/routeguide-tutorial.md +++ b/examples/routeguide-tutorial.md @@ -401,7 +401,7 @@ async fn list_features( &self, request: Request, ) -> Result, Status> { - let (mut tx, rx) = mpsc::channel(4); + let (tx, rx) = mpsc::channel(4); let features = self.features.clone(); tokio::spawn(async move { @@ -668,7 +668,7 @@ async fn print_features(client: &mut RouteGuideClient) -> Result<(), Bo .into_inner(); while let Some(feature) = stream.message().await? { - println!("NOTE = {:?}", feature); + println!("FEATURE = {:?}", feature); } Ok(()) diff --git a/examples/src/routeguide/client.rs b/examples/src/routeguide/client.rs index 662dfccad..db61e1c39 100644 --- a/examples/src/routeguide/client.rs +++ b/examples/src/routeguide/client.rs @@ -32,7 +32,7 @@ async fn print_features(client: &mut RouteGuideClient) -> Result<(), Bo .into_inner(); while let Some(feature) = stream.message().await? { - println!("NOTE = {:?}", feature); + println!("FEATURE = {:?}", feature); } Ok(())