do not send discord message on success
This commit is contained in:
parent
28c643f575
commit
6e6e07b1e7
|
@ -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!(
|
||||||
|
|
Loading…
Reference in New Issue