mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 11:49:02 +08:00
Merge branch 'main' of https://github.com/SECTL/SecScore
This commit is contained in:
@@ -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>>(())
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user