mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
ws socket worker: replace an unwrap with expect
This commit is contained in:
parent
14a801f4d4
commit
16effc74a3
1 changed files with 3 additions and 1 deletions
|
|
@ -430,7 +430,9 @@ async fn run_stream_agnostic_connection<
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.detach();
|
.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> {
|
struct ConnectionReader<S> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue