Skip to content

Commit

Permalink
fix: rename OPENDAL_HOT_*/COLD_* to OPENDALHOT_*/COLD_*
Browse files Browse the repository at this point in the history
  • Loading branch information
aawsome committed Jan 2, 2025
1 parent d1b11f9 commit 9a0f239
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl Configurable<RusticConfig> for EntryPoint {
// That's why it says `_config`, because it's not read at all and therefore not needed.
let mut config = self.config.clone();

// collect "RUSTIC_REPO_OPT*" and "OPENDAL_*" env variables
// collect "RUSTIC_REPO_OPT*" and "OPENDAL*" env variables
for (var, value) in std::env::vars() {
if let Some(var) = var.strip_prefix("RUSTIC_REPO_OPT_") {
let var = var.from_case(Case::UpperSnake).to_case(Case::Kebab);
Expand All @@ -230,10 +230,10 @@ impl Configurable<RusticConfig> for EntryPoint {
} else if let Some(var) = var.strip_prefix("RUSTIC_REPO_OPTCOLD_") {
let var = var.from_case(Case::UpperSnake).to_case(Case::Kebab);
_ = config.repository.be.options_cold.insert(var, value);
} else if let Some(var) = var.strip_prefix("OPENDAL_HOT_") {
} else if let Some(var) = var.strip_prefix("OPENDALHOT_") {
let var = var.from_case(Case::UpperSnake).to_case(Case::Snake);
_ = config.repository.be.options_hot.insert(var, value);
} else if let Some(var) = var.strip_prefix("OPENDAL_COLD_") {
} else if let Some(var) = var.strip_prefix("OPENDALCOLD_") {
let var = var.from_case(Case::UpperSnake).to_case(Case::Snake);
_ = config.repository.be.options_cold.insert(var, value);
}
Expand Down

0 comments on commit 9a0f239

Please sign in to comment.