From 52d00d9c5884932f7dea6832ea506c7ce1681abb Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 20 Mar 2024 15:34:25 +0100 Subject: [PATCH] fix compile on non ee --- backend/windmill-worker/src/global_cache.rs | 4 ++-- backend/windmill-worker/src/python_executor.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/windmill-worker/src/global_cache.rs b/backend/windmill-worker/src/global_cache.rs index 955092dd92..56d7492d1a 100644 --- a/backend/windmill-worker/src/global_cache.rs +++ b/backend/windmill-worker/src/global_cache.rs @@ -4,13 +4,13 @@ use crate::{ROOT_CACHE_DIR, PIP_CACHE_DIR}; // #[cfg(feature = "enterprise")] // use rand::Rng; -#[cfg(feature = "enterprise")] +#[cfg(all(feature = "enterprise", feature = "parquet"))] use tokio::time::Instant; #[cfg(feature = "parquet")] use object_store::ObjectStore; -#[cfg(feature = "enterprise")] +#[cfg(all(feature = "enterprise", feature = "parquet"))] use windmill_common::error; #[cfg(all(feature = "enterprise", feature = "parquet"))] diff --git a/backend/windmill-worker/src/python_executor.rs b/backend/windmill-worker/src/python_executor.rs index afa01a44f0..177cdd0198 100644 --- a/backend/windmill-worker/src/python_executor.rs +++ b/backend/windmill-worker/src/python_executor.rs @@ -10,7 +10,7 @@ use tokio::{ process::Command, }; use uuid::Uuid; -#[cfg(feature = "enterprise")] +#[cfg(all(feature = "enterprise", feature = "parquet"))] use windmill_common::ee::{get_license_plan, LicensePlan}; use windmill_common::{ error::{self, Error},