diff --git a/src/utils/healthcheck.rs b/src/utils/healthcheck.rs index 5eab765..ee6142e 100644 --- a/src/utils/healthcheck.rs +++ b/src/utils/healthcheck.rs @@ -75,7 +75,8 @@ pub async fn hc2(upslist: Arc, fullist: Arc, if first_run == 1 { info!("Performing initial hatchecks and upstreams ssl detection"); clone_idmap_into(&totest, &idlist); - info!("Gazan is up and ready to serve requests"); + info!("Gazan is up and ready to serve requests, the upstreams list is:"); + print_upstreams(&totest) } first_run+=1; diff --git a/src/utils/structs.rs b/src/utils/structs.rs index 7fc82df..ec7b6ab 100644 --- a/src/utils/structs.rs +++ b/src/utils/structs.rs @@ -3,8 +3,9 @@ use serde::{Deserialize, Serialize}; use std::collections::HashMap; use std::sync::atomic::AtomicUsize; -pub type UpstreamsDashMap = DashMap, AtomicUsize)>>; -pub type UpstreamsIdMap = DashMap; +pub type InnerMap = (String, u16, bool, bool); +pub type UpstreamsDashMap = DashMap, AtomicUsize)>>; +pub type UpstreamsIdMap = DashMap; pub type Headers = DashMap>>; #[derive(Debug, Clone, Serialize, Deserialize)] diff --git a/src/web/bgservice.rs b/src/web/bgservice.rs index 4e329a0..06f0546 100644 --- a/src/web/bgservice.rs +++ b/src/web/bgservice.rs @@ -79,8 +79,8 @@ impl BackgroundService for LB { } } } - info!("Upstreams list is changed, updating to:"); - print_upstreams(&self.ump_full); + // info!("Upstreams list is changed, updating to:"); + // print_upstreams(&self.ump_full); } None => {} }