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

@@ -23,7 +23,7 @@ pub async fn establish_websocket_connection() {
return; // Success
} else {
// Connection failed, trigger disaster recovery
crate::init::lifecycle::handle_disasterous_failure(
crate::init::lifecycle::handle_disastrous_failure(
Some("WebSocket connection failed. Please check your network and try again.".to_string())
).await;
return;
@@ -32,9 +32,9 @@ pub async fn establish_websocket_connection() {
sleep(BACKOFF).await;
}
// If we exhausted retries without valid token
crate::init::lifecycle::handle_disasterous_failure(
crate::init::lifecycle::handle_disastrous_failure(
Some("Failed to authenticate. Please restart and sign in again.".to_string())
).await;
}