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

@@ -53,7 +53,7 @@ async fn disconnect_user_profile() {
/// Destructs the user session and show health manager window
/// with error message, offering troubleshooting options.
pub async fn handle_disasterous_failure(error_message: Option<String>) {
pub async fn handle_disastrous_failure(error_message: Option<String>) {
destruct_user_session().await;
open_health_manager_window(error_message);
}

View File

@@ -1,6 +1,6 @@
use crate::{
init::{
lifecycle::{construct_user_session, handle_disasterous_failure, validate_server_health},
lifecycle::{construct_user_session, handle_disastrous_failure, validate_server_health},
tracing::init_logging,
},
services::{
@@ -28,7 +28,7 @@ pub async fn launch_app() {
init_modules();
if let Err(err) = validate_server_health().await {
handle_disasterous_failure(Some(err.to_string())).await;
handle_disastrous_failure(Some(err.to_string())).await;
return;
}