diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2022-01-15 01:10:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-15 07:10:12 +0100 |
| commit | ad224f53c798e8417a63d98daeaf3cadc199666c (patch) | |
| tree | f323be53d4f5b4289cd04296af1d35028dc23b15 /runtime/inspector_server.rs | |
| parent | 903cb48fe94bbbb0c43f17cf51e84a5583ddb728 (diff) | |
chore: upgrade to rust 1.58 (#13377)
Diffstat (limited to 'runtime/inspector_server.rs')
| -rw-r--r-- | runtime/inspector_server.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/runtime/inspector_server.rs b/runtime/inspector_server.rs index 899e128c7..dde5cea02 100644 --- a/runtime/inspector_server.rs +++ b/runtime/inspector_server.rs @@ -152,11 +152,7 @@ fn handle_ws_request( _ => http::Response::builder() .status(http::StatusCode::BAD_REQUEST) .body("Not a valid Websocket Request".into()), - }); - - if resp.is_err() { - return resp; - } + })?; let (parts, _) = req.into_parts(); let req = http::Request::from_parts(parts, body); @@ -193,7 +189,7 @@ fn handle_ws_request( pump_websocket_messages(websocket, inbound_tx, outbound_rx).await; }); - resp + Ok(resp) } fn handle_json_request( |
