docs: critical fixes needed + error handling for schema init
This commit is contained in:
@@ -228,8 +228,13 @@ pub async fn start_server(port: u16, api_key: String, database_url: &str) -> Res
|
||||
tracing::info!("Connected to database");
|
||||
|
||||
// Initialize schema
|
||||
init_schema(&pool).await?;
|
||||
tracing::info!("Schema initialized");
|
||||
match init_schema(&pool).await {
|
||||
Ok(_) => tracing::info!("Schema initialized"),
|
||||
Err(e) => {
|
||||
tracing::warn!("Schema init error (may be non-fatal): {}", e);
|
||||
// Continue anyway - tables might exist
|
||||
}
|
||||
}
|
||||
|
||||
// Create workers
|
||||
let vector_store = Arc::new(VectorStore::new(pool.clone()));
|
||||
|
||||
Reference in New Issue
Block a user