Rust service refactor: friends & some other
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user