Browse Source

remove todos

master
Jonathan Cobb 4 years ago
parent
commit
2ee97cac84
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      src/ssh.rs

+ 0
- 3
src/ssh.rs View File

@@ -82,7 +82,6 @@ pub async fn spawn_ssh (ssh_container : Arc<Mutex<SshContainer>>,
priv_key : Arc<String>) -> Result<bool, Option<Error>> { priv_key : Arc<String>) -> Result<bool, Option<Error>> {
let mut guard = ssh_container.lock().await; let mut guard = ssh_container.lock().await;
if (*guard).child.is_some() { if (*guard).child.is_some() {
// todo: verify that child is still running
info!("spawn_ssh: ssh tunnel exists, not respawning"); info!("spawn_ssh: ssh tunnel exists, not respawning");
Ok(true) Ok(true)
} else { } else {
@@ -148,7 +147,6 @@ pub async fn respawn_ssh (ssh_container : Arc<Mutex<SshContainer>>,
checker_abort_handler : Arc<Mutex<AbortHandle>>) -> Result<bool, Option<Error>> { checker_abort_handler : Arc<Mutex<AbortHandle>>) -> Result<bool, Option<Error>> {
let mut guard = ssh_container.lock().await; let mut guard = ssh_container.lock().await;
if (*guard).child.is_some() { if (*guard).child.is_some() {
// todo: verify that child is still running
info!("respawn_ssh: ssh tunnel exists, not respawning"); info!("respawn_ssh: ssh tunnel exists, not respawning");
Ok(true) Ok(true)
} else { } else {
@@ -306,7 +304,6 @@ async fn check_ssh (ssh_container : Arc<Mutex<SshContainer>>,
error_count = error_count + 1; error_count = error_count + 1;
} }
"deleted" => { "deleted" => {
// todo: shutdown ssh and ourselves
debug!("check_ssh: tunnel status via {}: tunnel was deleted, stopping tunnel", check_url); debug!("check_ssh: tunnel status via {}: tunnel was deleted, stopping tunnel", check_url);
deleted = true; deleted = true;
} }


Loading…
Cancel
Save