chore: Fix routeguide example warning (#807)

This commit is contained in:
Lucio Franco
2021-10-22 11:17:04 -04:00
committed by GitHub
parent 3ab00f304d
commit bbcacd0625
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -65,7 +65,8 @@ async fn run_route_chat(client: &mut RouteGuideClient<Channel>) -> Result<(), Bo
let outbound = async_stream::stream! {
let mut interval = time::interval(Duration::from_secs(1));
while let time = interval.tick().await {
loop {
let time = interval.tick().await;
let elapsed = time.duration_since(start);
let note = RouteNote {
location: Some(Point {