Skip to content

Commit

Permalink
Add missing unwrap()s (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akhilesh Singhania authored Mar 5, 2024
1 parent 278a2b1 commit ab33e69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/tokio/tutorial/channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ async fn main() {
let tx2 = tx.clone();

tokio::spawn(async move {
tx.send("sending from first handle").await;
tx.send("sending from first handle").await.unwrap();
});

tokio::spawn(async move {
tx2.send("sending from second handle").await;
tx2.send("sending from second handle").await.unwrap();
});

while let Some(message) = rx.recv().await {
Expand Down

0 comments on commit ab33e69

Please sign in to comment.