mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 11:49:02 +08:00
feat: 间隔时间加分可以按照多少天、月、分钟后加分
fix: 修复若干问题 下雨了好害怕我靠
This commit is contained in:
@@ -292,9 +292,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