diff --git a/src/handlers/dump_handlers.rs b/src/handlers/dump_handlers.rs index 044d700..7b446eb 100644 --- a/src/handlers/dump_handlers.rs +++ b/src/handlers/dump_handlers.rs @@ -14,7 +14,7 @@ use crate::{ ui::{ errors_alerts::ErrorsAlerts, - normal_alerts::NormalAlerts, + reconnect_alerts::ReconnectAlerts, }, }; @@ -61,7 +61,7 @@ impl DumpHandlers { ErrorsAlerts::max_attempts(); process::exit(1); } else { - NormalAlerts::reconnect(*attempt as u64, max_retries); + ReconnectAlerts::reconnect(*attempt as u64, max_retries); thread::sleep(Duration::from_secs(retry_interval)); } } diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 9a00a74..01c0472 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -6,7 +6,7 @@ pub mod schema_alerts; pub mod checksum_alerts; pub mod report_xss_alerts; -pub mod normal_alerts; +pub mod reconnect_alerts; pub mod report_alerts; pub mod errors_alerts; pub mod success_alerts; \ No newline at end of file diff --git a/src/ui/normal_alerts.rs b/src/ui/reconnect_alerts.rs similarity index 89% rename from src/ui/normal_alerts.rs rename to src/ui/reconnect_alerts.rs index c191e2e..bb125fc 100644 --- a/src/ui/normal_alerts.rs +++ b/src/ui/reconnect_alerts.rs @@ -4,9 +4,9 @@ use colored::*; use crate::utils::date::Date; -pub struct NormalAlerts; +pub struct ReconnectAlerts; -impl NormalAlerts { +impl ReconnectAlerts { pub fn reconnect(attempt: u64, max_retries: u64) { let current_datetime = Date::date_time();