applied hot reload to health check logic

This commit is contained in:
psun256
2025-12-10 18:52:40 -05:00
parent 9c24f172e9
commit 09966c1e85
10 changed files with 421 additions and 144 deletions

View File

@@ -1,11 +1,11 @@
pub mod health;
use crate::backend::health::ServerMetrics;
use core::fmt;
use std::net::SocketAddr;
use std::sync::Arc;
use std::sync::RwLock;
use std::sync::atomic::{AtomicUsize, Ordering};
use crate::backend::health::ServerMetrics;
// A possible endpoint for a proxied connection.
// Note that multiple may live on the same server, hence the Arc<RwLock<ServerMetric>>