Skip to content

Commit

Permalink
Fixed config validation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasDeBruijn committed Oct 1, 2023
1 parent d1c35c2 commit c2973a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chroma",
"version": "0.1.3",
"version": "0.1.4",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --port 8008",
Expand Down
2 changes: 1 addition & 1 deletion server/chroma/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chroma"
version = "0.1.3"
version = "0.1.4"
edition = "2021"

[dependencies]
Expand Down
8 changes: 4 additions & 4 deletions server/chroma/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit c2973a3

Please sign in to comment.