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

fix: features get refreshed. #38

Merged
merged 1 commit into from
Feb 3, 2023
Merged

Conversation

chriswk
Copy link
Member

@chriswk chriswk commented Feb 3, 2023

Previously our spin loop slept for 15 seconds and then hit the await on the channel for a new token to validate.
This PR changes that to use tokio::select to either refresh features for known tokens each 10th second, or receive a new token to validate.

Should allow us to use more than one token and get them refreshed

Previously our spin loop slept for 15 seconds and then hit the await on
the channel for a new token to validate.
This PR changes that to use tokio::select to either refresh features for
known tokens each 10th second, or receive a new token to validate.

Should allow us to use more than one token and get them refreshed
Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

LG!

@chriswk chriswk merged commit 2b0f832 into main Feb 3, 2023
@chriswk chriswk deleted the task/refreshEvenWhenNotGettingTokens branch February 3, 2023 12:53
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