Skip to content

Commit

Permalink
check (will revert later)
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Dec 15, 2023
1 parent 1a2a913 commit 2841c27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpxy-lib/src/message_handler/handler_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ where
};

self.globals.runtime_handle.spawn(async move {
let mut response_upgraded = TokioIo::new(onupgrade.await.map_err(|e| {
error!("Failed to upgrade response: {}", e);
RpxyError::FailedToUpgradeResponse(e.to_string())
})?);
let mut request_upgraded = TokioIo::new(request_upgraded.await.map_err(|e| {
error!("Failed to upgrade request: {}", e);
RpxyError::FailedToUpgradeRequest(e.to_string())
})?);
let mut response_upgraded = TokioIo::new(onupgrade.await.map_err(|e| {
error!("Failed to upgrade response: {}", e);
RpxyError::FailedToUpgradeResponse(e.to_string())
})?);
copy_bidirectional(&mut response_upgraded, &mut request_upgraded)
.await
.map_err(|e| {
Expand Down

0 comments on commit 2841c27

Please sign in to comment.