Skip to content

Commit

Permalink
Update cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung committed Sep 10, 2024
1 parent d29c148 commit 5eb03e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/native_mux_impl/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ impl Session {
Ok(())
}

pub(crate) async fn cancel_port_forward(
&self,
forward_type: crate::ForwardType,
listen_socket: crate::Socket<'_>,
connect_socket: crate::Socket<'_>,
) -> Result<(), Error> {
unimplemented!("Port forwarding cancellation is not implemented yet")
}

async fn close_impl(&self) -> Result<(), Error> {
Connection::connect(&self.ctl)
.await?
Expand Down
2 changes: 0 additions & 2 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,6 @@ impl Session {
/// The same set of arguments should be passed as when the port forwarding was requested.
///
/// Currently, cancelling port forwarding is only supported for the process mux impl.
#[cfg(not(feature = "native-mux"))]
#[cfg_attr(docsrs, doc(cfg(feature = "process-mux")))]
pub async fn cancel_port_forward(
&self,
forward_type: impl Into<ForwardType>,
Expand Down

0 comments on commit 5eb03e3

Please sign in to comment.