service handler bug fixed

migrate
prplV 2025-05-29 17:15:57 +03:00
parent 08e99385b9
commit 19b3477560
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
"hostname": "ya.ru",
"port": 443,
"triggers": {
"wait": 5,
"wait": 2,
"onLost": "stop"
}
}

View File

@ -140,7 +140,7 @@ pub mod v2 {
.map(|(prc, (_, sender_opt))| (prc, (self.access_url.clone(), sender_opt)))
.map(|(prc, (serv, sender_opt))| async move {
info!("Notifying process {} ...", prc);
let _ = sender_opt.send(Events::Positive(serv.clone()));
let _ = sender_opt.send(Events::Positive(serv.clone())).await;
})
.map(|fut| fut.boxed())
.collect();