mirror of
https://github.com/warp-tech/warpgate.git
synced 2025-09-07 07:04:22 +08:00
lint
This commit is contained in:
parent
43ba2dde1c
commit
a1dc78e5cf
2 changed files with 8 additions and 7 deletions
|
@ -329,7 +329,10 @@ impl RemoteClient {
|
|||
Ok(false)
|
||||
}
|
||||
|
||||
async fn setup_server_initiated_channel(&mut self, channel: russh::Channel<russh::client::Msg>) -> Uuid {
|
||||
async fn setup_server_initiated_channel(
|
||||
&mut self,
|
||||
channel: russh::Channel<russh::client::Msg>,
|
||||
) -> Uuid {
|
||||
let id = Uuid::new_v4();
|
||||
|
||||
let (tx, rx) = unbounded_channel();
|
||||
|
|
|
@ -356,7 +356,8 @@ impl ServerSession {
|
|||
Event::ConsoleInput(_) => (),
|
||||
}
|
||||
Ok(())
|
||||
}.boxed()
|
||||
}
|
||||
.boxed()
|
||||
}
|
||||
|
||||
async fn handle_server_handler_event(&mut self, event: ServerHandlerEvent) -> Result<()> {
|
||||
|
@ -740,13 +741,10 @@ impl ServerSession {
|
|||
self.all_channels.push(id);
|
||||
}
|
||||
}
|
||||
RCEvent::X11(id, originator_address, originator_port) =>{
|
||||
RCEvent::X11(id, originator_address, originator_port) => {
|
||||
if let Some(session) = &mut self.session_handle {
|
||||
let server_channel = session
|
||||
.channel_open_x11(
|
||||
originator_address,
|
||||
originator_port,
|
||||
)
|
||||
.channel_open_x11(originator_address, originator_port)
|
||||
.await?;
|
||||
|
||||
self.channel_map
|
||||
|
|
Loading…
Add table
Reference in a new issue