ws socket worker: replace an unwrap with expect

This commit is contained in:
Joakim Frostegård 2023-01-03 18:34:39 +01:00
parent 14a801f4d4
commit 16effc74a3

View file

@ -430,7 +430,9 @@ async fn run_stream_agnostic_connection<
.unwrap()
.detach();
race(reader_handle, writer_handle).await.unwrap()
race(reader_handle, writer_handle)
.await
.expect("reader/writer task should not be closed")
}
struct ConnectionReader<S> {