Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance improvements #75

Merged
merged 3 commits into from
Oct 6, 2022
Merged

Performance improvements #75

merged 3 commits into from
Oct 6, 2022

Conversation

lindsayismith
Copy link
Contributor

Add caching to the credential provider, make it a singleton, add periodic refreshes, and make gcloud handle expired auth more gracefully

…odic refreshes, and make gcloud handle expired auth more gracefully
@lindsayismith
Copy link
Contributor Author

/gcbrun

@lindsayismith
Copy link
Contributor Author

/gcbrun

private GoogleCredentials cachedCredentials;

// Singleton instance
private static DefaultCredentialProvider defaultInstance = new DefaultCredentialProvider();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make the instance value final?
And the same for the DefaultCredentialProvider class.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks.

@lindsayismith
Copy link
Contributor Author

/gcbrun

@lindsayismith
Copy link
Contributor Author

@googlebot: rescan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants