diff --git a/src/console/clients/checker/checks/health.rs b/src/console/clients/checker/checks/health.rs index bc545510..47eec4cb 100644 --- a/src/console/clients/checker/checks/health.rs +++ b/src/console/clients/checker/checks/health.rs @@ -2,9 +2,8 @@ use std::time::Duration; use reqwest::{Client as HttpClient, Url, Url as ServiceUrl}; -use crate::console::clients::checker::service::{CheckError, CheckResult}; - use super::structs::{CheckerOutput, Status}; +use crate::console::clients::checker::service::{CheckError, CheckResult}; #[allow(clippy::missing_panics_doc)] pub async fn run(health_checks: &Vec, check_results: &mut Vec) -> Vec { diff --git a/src/console/clients/checker/checks/http.rs b/src/console/clients/checker/checks/http.rs index f65674ce..e0b14b48 100644 --- a/src/console/clients/checker/checks/http.rs +++ b/src/console/clients/checker/checks/http.rs @@ -5,14 +5,13 @@ use reqwest::Url as ServiceUrl; use torrust_tracker_primitives::info_hash::InfoHash; use url::Url; +use super::structs::{CheckerOutput, Status}; use crate::console::clients::checker::service::{CheckError, CheckResult}; use crate::shared::bit_torrent::tracker::http::client::requests::announce::QueryBuilder; use crate::shared::bit_torrent::tracker::http::client::responses::announce::Announce; use crate::shared::bit_torrent::tracker::http::client::responses::scrape; use crate::shared::bit_torrent::tracker::http::client::{requests, Client}; -use super::structs::{CheckerOutput, Status}; - #[allow(clippy::missing_panics_doc)] pub async fn run(http_trackers: &Vec, check_results: &mut Vec) -> Vec { let mut http_checkers: Vec = Vec::new(); diff --git a/src/console/clients/checker/checks/udp.rs b/src/console/clients/checker/checks/udp.rs index e9a777a8..48f72edf 100644 --- a/src/console/clients/checker/checks/udp.rs +++ b/src/console/clients/checker/checks/udp.rs @@ -5,11 +5,10 @@ use hex_literal::hex; use log::debug; use torrust_tracker_primitives::info_hash::InfoHash; +use crate::console::clients::checker::checks::structs::{CheckerOutput, Status}; use crate::console::clients::checker::service::{CheckError, CheckResult}; use crate::console::clients::udp::checker; -use crate::console::clients::checker::checks::structs::{CheckerOutput, Status}; - const ASSIGNED_BY_OS: u16 = 0; const RANDOM_TRANSACTION_ID: i32 = -888_840_697; diff --git a/src/console/clients/checker/service.rs b/src/console/clients/checker/service.rs index fd97342c..16483e92 100644 --- a/src/console/clients/checker/service.rs +++ b/src/console/clients/checker/service.rs @@ -28,8 +28,6 @@ impl Service { /// Will return OK is all checks pass or an array with the check errors. #[allow(clippy::missing_panics_doc)] pub async fn run_checks(&self) -> Vec { - self.console.println("Running checks for trackers ..."); - let mut check_results = vec![]; let udp_checkers = checks::udp::run(&self.config.udp_trackers, &mut check_results).await;