Skip to content

Commit

Permalink
error -> unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 committed Jan 20, 2025
1 parent ea247c9 commit f6fad54
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mirrord/cli/src/port_forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,9 @@ impl ReversePortForwarder {

TaskUpdate::Finished(result) => match result {
Ok(()) => {
return Err(PortForwardError::IncomingProxyExited);
unreachable!(
"IncomingProxy should not finish, task sender is alive in this struct"
);
}
Err(TaskError::Error(e)) => {
return Err(e.into());
Expand Down Expand Up @@ -951,9 +953,6 @@ pub enum PortForwardError {
#[error("error from the IncomingProxy task: {0}")]
IncomingProxyError(#[from] IncomingProxyError),

#[error("IncomingProxy task unexpectedly exited")]
IncomingProxyExited,

#[error("IncomingProxy task panicked")]
IncomingProxyPanicked,

Expand Down

0 comments on commit f6fad54

Please sign in to comment.