From 74c3b6d708077f3906e42bc3e15342767bafd015 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 13 Sep 2022 21:50:04 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20automatically=20unwrap=20errors?= =?UTF-8?q?=20when=20sending=20on=20WebSocket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #140 --- src/net/rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/rpc.rs b/src/net/rpc.rs index b8ec7866..bda2f1d8 100644 --- a/src/net/rpc.rs +++ b/src/net/rpc.rs @@ -61,7 +61,7 @@ impl Rpc { // Send messages to the client tokio::task::spawn(async move { while let Some(res) = rcv.next().await { - wtx.send(res).await.unwrap(); + let _ = wtx.send(res).await; } }); // Get messages from the client