Don’t automatically unwrap errors when sending on WebSocket

Closes #140
This commit is contained in:
Tobie Morgan Hitchcock 2022-09-13 21:50:04 +01:00
parent fcdc9ebb8e
commit 74c3b6d708

View file

@ -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