chore: improve html-router auth, caching, and analytics while centralizing search labels in common.

small fix
This commit is contained in:
Per Stark
2026-05-29 14:42:20 +02:00
parent d3443d4153
commit 2aa92b6ad7
27 changed files with 510 additions and 344 deletions
+2 -3
View File
@@ -9,7 +9,7 @@ use tracing::{debug, info, warn};
use crate::{error::AppError, storage::db::SurrealDbClient};
const INDEX_POLL_INTERVAL: Duration = Duration::from_millis(50);
const INDEX_BUILD_TIMEOUT: Duration = Duration::from_secs(30 * 60);
const INDEX_BUILD_TIMEOUT: Duration = Duration::from_mins(30);
const FTS_ANALYZER_NAME: &str = "app_en_fts_analyzer";
/// HNSW index options used by runtime index creation (includes CONCURRENTLY).
@@ -537,8 +537,7 @@ async fn poll_index_build_status(
INDEX_BUILD_TIMEOUT,
last_snapshot
.as_ref()
.map(|snapshot| snapshot.status.as_str())
.unwrap_or("unknown")
.map_or("unknown", |snapshot| snapshot.status.as_str())
))
.with_context(|| format!("index {index_name} on table {table} did not become ready"));
}