From 1913979012efce55760d245993cef346f87602b4 Mon Sep 17 00:00:00 2001 From: centdix <40307056+centdix@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:13:28 +0200 Subject: [PATCH] fix build (#6746) --- backend/windmill-worker/src/memory_oss.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/windmill-worker/src/memory_oss.rs b/backend/windmill-worker/src/memory_oss.rs index beda196fbe..2444cd0ebf 100644 --- a/backend/windmill-worker/src/memory_oss.rs +++ b/backend/windmill-worker/src/memory_oss.rs @@ -1,13 +1,13 @@ -#[cfg(feature = "private")] +#[cfg(all(feature = "private", feature = "enterprise"))] #[allow(unused)] pub use crate::memory_ee::*; -#[cfg(not(feature = "private"))] +#[cfg(not(all(feature = "private", feature = "enterprise")))] use {crate::ai::types::OpenAIMessage, crate::memory_common, uuid::Uuid}; /// Read AI agent memory from storage /// In OSS: always reads from disk -#[cfg(not(feature = "private"))] +#[cfg(not(all(feature = "private", feature = "enterprise")))] pub async fn read_from_memory( workspace_id: &str, conversation_id: Uuid, @@ -18,7 +18,7 @@ pub async fn read_from_memory( /// Write AI agent memory to storage /// In OSS: always writes to disk -#[cfg(not(feature = "private"))] +#[cfg(not(all(feature = "private", feature = "enterprise")))] pub async fn write_to_memory( workspace_id: &str, conversation_id: Uuid, @@ -34,7 +34,7 @@ pub async fn write_to_memory( /// Delete all memory for a conversation from storage /// In OSS: always deletes from disk -#[cfg(not(feature = "private"))] +#[cfg(not(all(feature = "private", feature = "enterprise")))] pub async fn delete_conversation_memory( workspace_id: &str, conversation_id: Uuid,