fix(admin): compile metadata test helper only in tests (#7266)

fix(admin): compile metadata update facade only for tests
This commit is contained in:
Zhengchao An
2026-09-06 13:28:58 +08:00
committed by GitHub
parent 1a459d650f
commit 38611d2510
+1
View File
@@ -314,6 +314,7 @@ pub(crate) mod metadata_sys {
super::ecstore_bucket::metadata_sys::get(bucket).await
}
#[cfg(test)]
pub(crate) async fn update(bucket: &str, config_file: &str, data: Vec<u8>) -> Result<OffsetDateTime> {
crate::storage::storage_api::update_bucket_metadata_config(bucket, config_file, data).await
}