summaryrefslogtreecommitdiff
path: root/ext/http/lib.rs
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-10-18 12:30:46 -0700
committerGitHub <noreply@github.com>2024-10-18 19:30:46 +0000
commitd047cab14b754d20a43c7119e327b451440aaed9 (patch)
treebc0c4567f549349c2a1ca75748a69d83bc8f6c5c /ext/http/lib.rs
parent4b99cde504854baabdcf912f2fce3a7448119653 (diff)
refactor(ext/websocket): use concrete error type (#26226)
Diffstat (limited to 'ext/http/lib.rs')
-rw-r--r--ext/http/lib.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/http/lib.rs b/ext/http/lib.rs
index 934f8a002..5461713aa 100644
--- a/ext/http/lib.rs
+++ b/ext/http/lib.rs
@@ -1053,9 +1053,11 @@ async fn op_http_upgrade_websocket(
let (transport, bytes) =
extract_network_stream(hyper_v014::upgrade::on(request).await?);
- let ws_rid =
- ws_create_server_stream(&mut state.borrow_mut(), transport, bytes)?;
- Ok(ws_rid)
+ Ok(ws_create_server_stream(
+ &mut state.borrow_mut(),
+ transport,
+ bytes,
+ ))
}
// Needed so hyper can use non Send futures