diff --git a/object_store/src/client/mod.rs b/object_store/src/client/mod.rs index 71b11ad76128..215468103f7e 100644 --- a/object_store/src/client/mod.rs +++ b/object_store/src/client/mod.rs @@ -478,6 +478,7 @@ impl ClientOptions { /// In particular: /// * Allows HTTP as metadata endpoints do not use TLS /// * Configures a low connection timeout to provide quick feedback if not present + #[cfg(any(feature = "aws", feature = "gcp", feature = "azure"))] pub(crate) fn metadata_client(&self) -> Result { self.clone() .with_allow_http(true)