refactor: remove YOLO processor and dependencies
- Delete YOLO processor implementation (src/core/processor/yolo.rs) - Remove YOLO from processing pipeline and worker - Clean up YOLO-related code across multiple modules - Add migration 033_remove_yolo.sql YOLO functionality removed as part of architecture simplification
This commit is contained in:
@@ -9,6 +9,7 @@ use crate::core::cache::{MongoCache, RedisCache};
|
||||
use crate::core::db::{Database, PostgresDb, QdrantDb};
|
||||
use crate::Embedder;
|
||||
|
||||
use super::admin_config;
|
||||
use super::agent_api;
|
||||
use super::agent_search;
|
||||
use super::auth;
|
||||
@@ -99,6 +100,14 @@ pub async fn start_server(host: &str, port: u16) -> anyhow::Result<()> {
|
||||
|
||||
let qdrant = std::sync::Arc::new(QdrantDb::new());
|
||||
|
||||
// Initialize AdminConfigManager
|
||||
let admin_config_manager = std::sync::Arc::new(
|
||||
crate::core::admin_config::AdminConfigManager::new(
|
||||
&crate::core::admin_config::get_default_config_path()
|
||||
)
|
||||
.expect("Failed to initialize AdminConfigManager")
|
||||
);
|
||||
|
||||
// Ensure trash collection exists for trace hard-delete undo
|
||||
if let Err(e) = qdrant.ensure_collection("_faces_trash", 512).await {
|
||||
tracing::warn!("[Server] Failed to ensure _faces_trash collection: {}", e);
|
||||
@@ -136,6 +145,7 @@ pub async fn start_server(host: &str, port: u16) -> anyhow::Result<()> {
|
||||
.merge(cluster_agent::cluster_agent_routes())
|
||||
.merge(profile::profile_routes())
|
||||
.merge(face_filter::face_filter_routes())
|
||||
.merge(admin_config::admin_config_routes().with_state(admin_config_manager.clone()))
|
||||
.layer(axum::middleware::from_fn_with_state(
|
||||
state.api_state.clone(),
|
||||
unified_auth,
|
||||
|
||||
Reference in New Issue
Block a user