mirror of
https://github.com/perstarkse/minne.git
synced 2026-06-30 18:11:34 +02:00
chore: harden common errors, fastembed blocking, and ingest ownership
Run FastEmbed inference on spawn_blocking, propagate Surreal take failures, add AppError::internal and typed ingest/embedding parse errors, and take owned file lists in ingestion payload construction.
This commit is contained in:
@@ -124,7 +124,7 @@ impl SurrealDbClient {
|
||||
.load_files(&MIGRATIONS_DIR)
|
||||
.up()
|
||||
.await
|
||||
.map_err(|e| AppError::InternalError(e.to_string()))?;
|
||||
.map_err(AppError::internal)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user