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

vault: improve usage of time.Timer #388

Merged
merged 1 commit into from
Aug 18, 2023
Merged

vault: improve usage of time.Timer #388

merged 1 commit into from
Aug 18, 2023

Conversation

aead
Copy link
Member

@aead aead commented Aug 17, 2023

This commit improves the usage of time.Timer
esp. within the Vault token renew and re-auth
logic.

It follows some recommendations from:
https://go101.org/article/memory-leaking.html

Ref: Real Memory Leaking Caused by Not Stopping
time.Ticker Values Which Are Not Used Any More

Further, this commit updates the Vault SDK dep
from 1.5 to 1.9.2 and removes some deprecated API
usages.

This commit improves the usage of `time.Timer`
esp. within the Vault token renew and re-auth
logic.

It follows some recommendations from:
https://go101.org/article/memory-leaking.html

Ref: Real Memory Leaking Caused by Not Stopping
time.Ticker Values Which Are Not Used Any More

Further, this commit updates the Vault SDK dep
from 1.5 to 1.9.2 and removes some deprecated API
usages.

Signed-off-by: Andreas Auernhammer <[email protected]>
Copy link
Contributor

@shtripat shtripat left a comment

Choose a reason for hiding this comment

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

lgtm

@aead aead merged commit 8563a0d into master Aug 18, 2023
9 checks passed
@aead aead deleted the timer branch August 18, 2023 06:23
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.

3 participants