diff --git a/src/basic/keywords/core_functions.rs b/src/basic/keywords/core_functions.rs index ce004a2f7..4f6d58d19 100644 --- a/src/basic/keywords/core_functions.rs +++ b/src/basic/keywords/core_functions.rs @@ -1,12 +1,3 @@ - - - - - - - - - use crate::shared::models::UserSession; use crate::shared::state::AppState; use log::debug; @@ -19,106 +10,21 @@ use super::errors::register_error_functions; use super::math::register_math_functions; use super::validation::register_validation_functions; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pub fn register_core_functions(state: Arc, user: UserSession, engine: &mut Engine) { debug!("Registering core BASIC functions..."); - - register_math_functions(state.clone(), user.clone(), engine); + register_math_functions(&state, user.clone(), engine); debug!(" * Math functions registered"); - - register_datetime_functions(state.clone(), user.clone(), engine); + register_datetime_functions(&state, user.clone(), engine); debug!(" * Date/Time functions registered"); - - register_validation_functions(state.clone(), user.clone(), engine); + register_validation_functions(&state, user.clone(), engine); debug!(" * Validation functions registered"); - register_array_functions(state.clone(), user.clone(), engine); debug!(" * Array functions registered"); - register_error_functions(state, user, engine); debug!(" * Error handling functions registered"); diff --git a/src/drive/vectordb.rs b/src/drive/vectordb.rs index 4a0ad1253..de70c4275 100644 --- a/src/drive/vectordb.rs +++ b/src/drive/vectordb.rs @@ -473,7 +473,7 @@ impl UserDriveVectorDB { Ok(count) } - pub async fn update_file_metadata(&self, _file_id: &str, _tags: Vec) -> Result<()> { + pub async fn update_file_metadata(&self, file_id: &str, tags: Vec) -> Result<()> { #[cfg(not(feature = "vectordb"))] { let file_path = self.db_path.join(format!("{}.json", file_id)); @@ -488,6 +488,7 @@ impl UserDriveVectorDB { #[cfg(feature = "vectordb")] { + let _ = (file_id, tags); log::warn!("Metadata update not yet implemented for Qdrant backend"); }