From 76d517ef01172715fb6bd208d72e09bbe3052387 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 29 May 2024 23:51:38 +0200 Subject: [PATCH] fix ee.rs --- backend/windmill-common/src/ee.rs | 6 +++ .../src/ee.rs~Updated upstream | 38 ------------------- 2 files changed, 6 insertions(+), 38 deletions(-) delete mode 100644 backend/windmill-common/src/ee.rs~Updated upstream diff --git a/backend/windmill-common/src/ee.rs b/backend/windmill-common/src/ee.rs index 5f2e656429..5272b446dd 100644 --- a/backend/windmill-common/src/ee.rs +++ b/backend/windmill-common/src/ee.rs @@ -20,6 +20,12 @@ pub async fn get_license_plan() -> LicensePlan { return Community; } +#[cfg(feature = "enterprise")] +pub async fn renew_license_key(_http_client: &reqwest::Client, _db: &crate::db::DB) -> String { + // Implementation is not open source + "".to_string() +} + #[derive(Deserialize)] #[serde(untagged)] pub enum CriticalErrorChannel {} diff --git a/backend/windmill-common/src/ee.rs~Updated upstream b/backend/windmill-common/src/ee.rs~Updated upstream deleted file mode 100644 index 8c06a6456f..0000000000 --- a/backend/windmill-common/src/ee.rs~Updated upstream +++ /dev/null @@ -1,38 +0,0 @@ -use crate::ee::LicensePlan::Community; -use serde::Deserialize; -use std::sync::Arc; -use tokio::sync::RwLock; - -lazy_static::lazy_static! { - pub static ref LICENSE_KEY_VALID: Arc> = Arc::new(RwLock::new(true)); - pub static ref LICENSE_KEY_ID: Arc> = Arc::new(RwLock::new("".to_string())); - pub static ref LICENSE_KEY: Arc> = Arc::new(RwLock::new("".to_string())); -} - -pub enum LicensePlan { - Community, - Pro, - Enterprise, -} - -pub async fn get_license_plan() -> LicensePlan { - // Implementation is not open source - return Community; -} - -#[derive(Deserialize)] -#[serde(untagged)] -pub enum CriticalErrorChannel {} - -pub async fn trigger_critical_error_channels(_error_message: String) {} - -#[cfg(feature = "enterprise")] -pub async fn renew_license_key(_http_client: &reqwest::Client, _db: &crate::db::DB) -> String { - // Implementation is not open source - "".to_string() -} - -#[cfg(feature = "enterprise")] -pub async fn schedule_key_renewal(_http_client: &reqwest::Client, _db: &crate::db::DB) -> () { - // Implementation is not open source -}