Rust service refactor: friends & some other

This commit is contained in:
2026-03-10 13:27:12 +08:00
parent e38697faa9
commit 3437bc5746
17 changed files with 84 additions and 93 deletions

View File

@@ -1,5 +1,5 @@
use crate::{
init::lifecycle::{handle_disasterous_failure, validate_server_health},
init::lifecycle::{handle_disastrous_failure, validate_server_health},
lock_w,
services::ws::client::establish_websocket_connection,
state::FDOLL,
@@ -44,7 +44,7 @@ pub async fn start_health_monitor() {
if consecutive_failures >= MAX_FAILURES {
info!("Server appears unreachable after {} attempts, triggering recovery", MAX_FAILURES);
handle_disasterous_failure(Some(format!(
handle_disastrous_failure(Some(format!(
"Lost connection to server: {}",
e
)))