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; }