From c5a44f7889ef8934b66921f31727e838864c7d3d Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 8 Apr 2026 18:33:39 -0300 Subject: [PATCH] Clean up local-files feature comments - Keep local-files feature flag for conditional local file monitoring - Keep gbo- bucket filtering in drive - Remove verbose comments --- Cargo.toml | 2 -- src/drive/mod.rs | 4 +--- src/main_module/bootstrap.rs | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1597b752..2df1f1c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,8 +25,6 @@ external_sync = ["automation", "drive", "cache"] scripting = ["dep:rhai"] automation = ["scripting", "dep:cron"] drive = ["dep:aws-config", "dep:aws-sdk-s3", "dep:aws-smithy-async", "dep:pdf-extract"] -# local-files: Enables local file monitoring (scans /opt/gbo/data for bots) -# Without this feature, only MinIO/Drive is used as bot source local-files = ["dep:notify"] cache = ["dep:redis"] directory = ["rbac"] diff --git a/src/drive/mod.rs b/src/drive/mod.rs index 2b186bf9..2ef432f3 100644 --- a/src/drive/mod.rs +++ b/src/drive/mod.rs @@ -345,9 +345,7 @@ pub async fn list_buckets( .filter_map(|b| { b.name().map(|name| { let name_str = name.to_string(); - // Only include buckets that start with "gbo-" when local-files is NOT enabled - // This ensures only MinIO-sourced bots are used in cloud/gateway mode - #[cfg(not(feature = "local-files"))] + // Only include buckets that start with "gbo-" (MinIO bot source) if !name_str.starts_with("gbo-") { return None; } diff --git a/src/main_module/bootstrap.rs b/src/main_module/bootstrap.rs index d9b22162..44c51834 100644 --- a/src/main_module/bootstrap.rs +++ b/src/main_module/bootstrap.rs @@ -893,11 +893,9 @@ pub async fn start_background_services( #[cfg(feature = "drive")] start_drive_monitors(app_state.clone(), pool).await; - // Local file monitoring only enabled when local-files feature is present #[cfg(feature = "local-files")] start_local_file_monitor(app_state.clone()).await; - // ConfigWatcher only enabled when local-files feature is present #[cfg(feature = "local-files")] start_config_watcher(app_state.clone()).await; }