From aab9a6cee052542be21b9c2bbbe02dca6e97faa6 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Sat, 15 Jun 2024 05:22:36 +0800 Subject: [PATCH] chore: Remove not used cache in InstanceCredentialProvider (#5888) Signed-off-by: Xuanwo --- object_store/src/aws/builder.rs | 1 - object_store/src/aws/credential.rs | 3 --- 2 files changed, 4 deletions(-) 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, }