feat: ASRX hybrid pipeline, identity history, worker fixes, checkpoint system
This commit is contained in:
+9
-1
@@ -388,10 +388,18 @@ async fn health_detailed(State(state): State<AppState>) -> Json<DetailedHealthRe
|
||||
let directory_exists = identities_root.is_dir();
|
||||
let files_count = crate::core::identity::storage::count_identity_files();
|
||||
let index_ok = crate::core::identity::storage::read_index().is_ok();
|
||||
let db_count: i64 = sqlx::query_scalar("SELECT COUNT(*) FROM identities")
|
||||
let id_cnt: i64 = sqlx::query_scalar("SELECT COUNT(*) FROM identities")
|
||||
.fetch_one(state.db.pool())
|
||||
.await
|
||||
.unwrap_or(0);
|
||||
let st_cnt: i64 = sqlx::query_scalar(&format!(
|
||||
"SELECT COUNT(*) FROM {} WHERE file_uuid IS NOT NULL",
|
||||
crate::core::db::schema::table_name("strangers")
|
||||
))
|
||||
.fetch_one(state.db.pool())
|
||||
.await
|
||||
.unwrap_or(0);
|
||||
let db_count = id_cnt + st_cnt;
|
||||
IdentityHealth {
|
||||
directory_exists,
|
||||
files_count,
|
||||
|
||||
Reference in New Issue
Block a user