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

Load user info in lazy way #2062

Merged
merged 1 commit into from
Nov 30, 2023
Merged

Load user info in lazy way #2062

merged 1 commit into from
Nov 30, 2023

Conversation

snuyanzin
Copy link
Contributor

Currently username and tenantId are loaded alwas before checks where they are not required.
At the same time based on this checks it could happened that method will just return.
In this case there is no need for loading such data, so just move logic for loading data after these checks in case they are successful

Signed-off-by: Sergey Nuyanzin <[email protected]>
Copy link
Contributor

@muralibasani muralibasani left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@snuyanzin snuyanzin merged commit fa888b6 into Aiven-Open:main Nov 30, 2023
15 checks passed
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