BUG is still here

pull/9/head
prplV 2024-07-04 09:32:37 -04:00
parent 70443881a1
commit f0fe76aa1f
2 changed files with 2 additions and 3 deletions

View File

@ -27,7 +27,7 @@
"triggers" : { "triggers" : {
"wait" : 6, "wait" : 6,
"delay" : 1, "delay" : 1,
"onLost" : "stop" "onLost" : "hold"
} }
}] }]
} }

View File

@ -292,7 +292,6 @@ async fn file_handler(name: &str, files: &Vec<Files>, tx: mpsc::Sender<u8>) {
continue; continue;
}, },
Err(_) => { Err(_) => {
println!("{}", file.triggers.on_delete.as_str());
match file.triggers.on_delete.as_str() { match file.triggers.on_delete.as_str() {
"stay" => { "stay" => {
continue; continue;
@ -344,7 +343,7 @@ async fn service_handler(name: &str, services: &Vec<Services>, tx: mpsc::Sender<
continue; continue;
}, },
Err(_) => { Err(_) => {
println!("Service {}:{} is inreachable for process {}", &serv.hostname, &serv.port, &name); println!("Service {}:{} is unreachable for process {}", &serv.hostname, &serv.port, &name);
match serv.triggers.on_lost.as_str() { match serv.triggers.on_lost.as_str() {
"stay" => { "stay" => {
continue; continue;