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 resource leak in AWS refresh loop #278

Merged
merged 1 commit into from
Jun 20, 2022
Merged

Conversation

kubukoz
Copy link
Member

@kubukoz kubukoz commented Jun 20, 2022

Closes #273

@kubukoz kubukoz merged commit 96150da into disneystreaming:main Jun 20, 2022
@kubukoz kubukoz deleted the fix-273 branch June 20, 2022 10:55
} yield ()
}.foreverM
Copy link
Contributor

Choose a reason for hiding this comment

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

this is amazing

@@ -100,7 +100,7 @@ object AwsCredentialsProvider {
def refreshing[F[_]](
get: F[AwsTemporaryCredentials]
Copy link
Member Author

Choose a reason for hiding this comment

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

Something I didn't consider, we should probably implement some retries because if get ever fails we'll stop the loop altogether

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.

AWS: refreshing creds isn't leak safe
3 participants