do not send discord message on success

This commit is contained in:
GroovieGermanikus 2024-07-11 10:40:16 +02:00
parent 28c643f575
commit 6e6e07b1e7
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 10 additions and 8 deletions

View File

@ -107,14 +107,16 @@ async fn main() -> ExitCode {
assert!(tasks_total > 0, "no results"); assert!(tasks_total > 0, "no results");
let discord_body = create_discord_message( if !success {
&rpcnode_label, let discord_body = create_discord_message(
checks_enabled, &rpcnode_label,
&mut tasks_success, checks_enabled,
tasks_timedout, &mut tasks_success,
success, tasks_timedout,
); success,
send_webook_discord(discord_body).await; );
send_webook_discord(discord_body).await;
}
if !success { if !success {
warn!( warn!(