feat: add sync files\folders
This commit is contained in:
+8
-2
@@ -121,7 +121,7 @@ fn query_ssh_config(alias: &str) -> HostConfig {
|
||||
}
|
||||
}
|
||||
|
||||
struct ClientHandler {
|
||||
pub(crate) struct ClientHandler {
|
||||
host: String,
|
||||
port: u16,
|
||||
}
|
||||
@@ -173,7 +173,13 @@ pub struct Session {
|
||||
handle: Handle<ClientHandler>,
|
||||
}
|
||||
|
||||
fn runtime() -> &'static tokio::runtime::Runtime {
|
||||
impl Session {
|
||||
pub(crate) fn handle(&mut self) -> &mut Handle<ClientHandler> {
|
||||
&mut self.handle
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn runtime() -> &'static tokio::runtime::Runtime {
|
||||
static RT: OnceLock<tokio::runtime::Runtime> = OnceLock::new();
|
||||
RT.get_or_init(|| {
|
||||
tokio::runtime::Builder::new_current_thread()
|
||||
|
||||
Reference in New Issue
Block a user