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

fetch discharge tokens in parallel if no URL callback is provided #39

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

wjordan
Copy link
Contributor

@wjordan wjordan commented Dec 17, 2024

The reason for fetching sequentially is to allow a URL callback session to be used for subsequent fetches; so if no URL callback is provided, there's no reason to fetch sequentially.

This change should make it possible to optimize the token-fetching logic in flyctl to more efficiently refresh tokens in parallel for accounts linked to a large number of organizations.

The reason for fetching sequentially is to allow a URL callback session
to be used for subsequent fetches; so if no URL callback is
provided, there's no reason to fetch sequentially.
Copy link
Member

@btoews btoews left a comment

Choose a reason for hiding this comment

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

Makes sense to me

@wjordan wjordan merged commit cc1420d into main Dec 17, 2024
1 check passed
@wjordan wjordan deleted the discharge-nocallback-parallel branch December 17, 2024 23:11
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