Skip to content

Commit 67cd279

Browse files
committed
fix: rename as_db_type
1 parent 5572701 commit 67cd279

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rust/operator-binary/src/crd/database.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub enum MetadataDatabaseConnection {
3737

3838
impl MetadataDatabaseConnection {
3939
/// Name of the database as it should be passed using `METADATA_STORAGE_TYPE` ("druid.metadata.storage.type") property.
40-
pub fn as_db_type(&self) -> &str {
40+
pub fn as_metadata_storage_type(&self) -> &str {
4141
match self {
4242
MetadataDatabaseConnection::Postgresql(_) => "postgresql",
4343
MetadataDatabaseConnection::Mysql(_) => "mysql",

rust/operator-binary/src/druid_controller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ fn build_rolegroup_config_map(
763763
.spec
764764
.cluster_config
765765
.metadata_database
766-
.as_db_type()
766+
.as_metadata_storage_type()
767767
.to_string(),
768768
),
769769
);

0 commit comments

Comments
 (0)