From a25033ab91cfd96c44bf36858fee636c3d4bdd09 Mon Sep 17 00:00:00 2001 From: skearya <77034153+skearya@users.noreply.github.com> Date: Thu, 22 Feb 2024 15:06:07 -0500 Subject: [PATCH] Update channels.md --- content/tokio/tutorial/channels.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/content/tokio/tutorial/channels.md b/content/tokio/tutorial/channels.md index 79b65ce5..86f60b79 100644 --- a/content/tokio/tutorial/channels.md +++ b/content/tokio/tutorial/channels.md @@ -221,13 +221,11 @@ let manager = tokio::spawn(async move { // Start receiving messages while let Some(cmd) = rx.recv().await { - use Command::*; - match cmd { - Get { key } => { + Command::Get { key } => { client.get(&key).await; } - Set { key, val } => { + Command::Set { key, val } => { client.set(&key, val).await; } }