diff --git a/object_store/src/aws/builder.rs b/object_store/src/aws/builder.rs index 1e42093fd8a1..ffef3fb33d49 100644 --- a/object_store/src/aws/builder.rs +++ b/object_store/src/aws/builder.rs @@ -898,7 +898,6 @@ impl AmazonS3Builder { info!("Using Instance credential provider"); let token = InstanceCredentialProvider { - cache: Default::default(), imdsv1_fallback: self.imdsv1_fallback.get()?, metadata_endpoint: self .metadata_endpoint diff --git a/object_store/src/aws/credential.rs b/object_store/src/aws/credential.rs index 01cfb3427457..c13f8aafc7f3 100644 --- a/object_store/src/aws/credential.rs +++ b/object_store/src/aws/credential.rs @@ -424,9 +424,6 @@ fn canonicalize_headers(header_map: &HeaderMap) -> (String, String) { /// #[derive(Debug)] pub struct InstanceCredentialProvider { - // https://github.com/apache/arrow-rs/issues/5884 - #[allow(dead_code)] - pub cache: TokenCache>, pub imdsv1_fallback: bool, pub metadata_endpoint: String, }