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

Implement Locking for Authentication #195

Merged
merged 2 commits into from
Nov 27, 2023
Merged

Conversation

AdrianJSClark
Copy link
Owner

It is possible on a particular DataClient instance to call multiple methods and have each method trigger the authentication process. This leads to the login calls being made multiple times, wasting API calls.

This change places a lock such that the login process will be called once regardless of how many methods attempt to access it at the same time.

Fixes: #185

It is possible on a particular DataClient instance to call multiple
methods and have each method trigger the authentication process. This
leads to the login calls being made multiple times, wasting API calls.

This change places a lock such that the login process will be called
once regardless of how many methods attempt to access it at the same
time.

Fixes: #185
@AdrianJSClark AdrianJSClark linked an issue Nov 27, 2023 that may be closed by this pull request
@AdrianJSClark AdrianJSClark self-assigned this Nov 27, 2023
@AdrianJSClark AdrianJSClark merged commit da1e5cf into main Nov 27, 2023
2 checks passed
@AdrianJSClark AdrianJSClark deleted the 185-auth-concurrency-issues branch November 27, 2023 14:19
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.

Auth concurrency issues
1 participant