From c2973a3577079651c474595714264156527838ab Mon Sep 17 00:00:00 2001 From: Tobias de Bruijn Date: Sun, 1 Oct 2023 13:19:36 +0200 Subject: [PATCH] Fixed config validation logic --- frontend/package.json | 2 +- server/chroma/Cargo.toml | 2 +- server/chroma/src/config.rs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 83e8e70..b53ed97 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "chroma", - "version": "0.1.3", + "version": "0.1.4", "private": true, "scripts": { "serve": "vue-cli-service serve --port 8008", diff --git a/server/chroma/Cargo.toml b/server/chroma/Cargo.toml index 7a4b219..f108ad6 100644 --- a/server/chroma/Cargo.toml +++ b/server/chroma/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chroma" -version = "0.1.3" +version = "0.1.4" edition = "2021" [dependencies] diff --git a/server/chroma/src/config.rs b/server/chroma/src/config.rs index ee01ea3..38d6655 100644 --- a/server/chroma/src/config.rs +++ b/server/chroma/src/config.rs @@ -186,10 +186,10 @@ impl Config { } StorageEngine::S3 => { let result = self.s3_bucket_name.is_some() - ^ self.s3_region.is_some() - ^ self.s3_endpoint_url.is_some() - ^ self.s3_access_key_id.is_some() - ^ self.s3_secret_access_key.is_some(); + && self.s3_region.is_some() + && self.s3_endpoint_url.is_some() + && self.s3_access_key_id.is_some() + && self.s3_secret_access_key.is_some(); if !result { warn!("Config validation failed on S3 fields.");