mirror of
https://github.com/perstarkse/minne.git
synced 2026-07-05 04:21:38 +02:00
chore: improve html-router auth, caching, and analytics while centralizing search labels in common.
small fix
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user