This commit is contained in:
Yukino_fox
2026-03-29 19:36:39 +08:00
21 changed files with 1425 additions and 548 deletions
+4 -3
View File
@@ -318,9 +318,10 @@ fn setup_database(app: &mut App) -> Result<(), Box<dyn std::error::Error>> {
*db_guard = Some(active_conn);
}
state_guard.initialize().await.map_err(|e| {
format!("Failed to initialize app state: {}", e)
})?;
state_guard
.initialize()
.await
.map_err(|e| format!("Failed to initialize app state: {}", e))?;
Ok::<_, Box<dyn std::error::Error>>(())
});