Merge pull request #108 from greatest-ape/work-2023-01-03_2

ws socket worker: replace an expect with error return
This commit is contained in:
Joakim Frostegård 2023-01-03 19:13:01 +01:00 committed by GitHub
commit 8cab0297a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -432,7 +432,7 @@ async fn run_stream_agnostic_connection<
race(reader_handle, writer_handle)
.await
.expect("reader/writer task should not be closed")
.ok_or_else(|| anyhow::anyhow!("reader/writer task closed"))?
}
struct ConnectionReader<S> {