Skip to content

Commit

Permalink
chore: Remove not used cache in InstanceCredentialProvider (#5888)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo authored Jun 14, 2024
1 parent 956fe76 commit aab9a6c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion object_store/src/aws/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions object_store/src/aws/credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,6 @@ fn canonicalize_headers(header_map: &HeaderMap) -> (String, String) {
/// <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html>
#[derive(Debug)]
pub struct InstanceCredentialProvider {
// https://github.com/apache/arrow-rs/issues/5884
#[allow(dead_code)]
pub cache: TokenCache<Arc<AwsCredential>>,
pub imdsv1_fallback: bool,
pub metadata_endpoint: String,
}
Expand Down

0 comments on commit aab9a6c

Please sign in to comment.