From f3c9ad139604a31a779ec9aa757959361a6d4ae0 Mon Sep 17 00:00:00 2001 From: Alexandre Pere Date: Wed, 13 Nov 2019 13:53:58 +0100 Subject: [PATCH] Removes Remote leak --- remote-leak/Cargo.toml | 9 --------- remote-leak/src/main.rs | 31 ------------------------------- 2 files changed, 40 deletions(-) delete mode 100644 remote-leak/Cargo.toml delete mode 100644 remote-leak/src/main.rs diff --git a/remote-leak/Cargo.toml b/remote-leak/Cargo.toml deleted file mode 100644 index dfded69..0000000 --- a/remote-leak/Cargo.toml +++ /dev/null @@ -1,9 +0,0 @@ -[package] -name = "remote-leak" -version = "0.2.0" -authors = ["Alexandre Péré "] -edition = "2018" - -[dependencies] -futures-preview = "0.3.0-alpha.17" -liborchestra = { path = "../liborchestra"} \ No newline at end of file diff --git a/remote-leak/src/main.rs b/remote-leak/src/main.rs deleted file mode 100644 index 23bfd9d..0000000 --- a/remote-leak/src/main.rs +++ /dev/null @@ -1,31 +0,0 @@ -#![feature(async_await, futures_api)] -extern crate liborchestra; -use liborchestra::ssh; - -use std::alloc::System; - -#[global_allocator] -static GLOBAL: System = System; - - - -fn main(){ - use futures::executor::block_on; - for i in 1..100{ - async fn connect_and_ls() { - let profile = ssh::config::SshProfile{ - name: "test".to_owned(), - hostname: Some("127.0.0.1".to_owned()), - user: Some("apere".to_owned()), - port: None, - proxycommand: Some("ssh -A -l apere localhost -W localhost:22".to_owned()), - }; - let remote = ssh::RemoteHandle::spawn(profile).unwrap(); - let output = remote.async_exec("echo kikou".to_owned()).await.unwrap(); - println!("Executed and resulted in {:?}", String::from_utf8(output.stdout).unwrap()); - } - println!("{}", i); - block_on(connect_and_ls()); - } -} - -- GitLab