diff --git a/object_store/src/gcp/credential.rs b/object_store/src/gcp/credential.rs index 205b805947cc..ad21c33b8b9d 100644 --- a/object_store/src/gcp/credential.rs +++ b/object_store/src/gcp/credential.rs @@ -203,7 +203,7 @@ impl TokenProvider for OAuthProvider { let claim_str = b64_encode_obj(&claims)?; let message = [self.jwt_header.as_ref(), claim_str.as_ref()].join("."); - let mut sig_bytes = vec![0; self.key_pair.public_modulus_len()]; + let mut sig_bytes = vec![0; self.key_pair.public().modulus_len()]; self.key_pair .sign( &ring::signature::RSA_PKCS1_SHA256,