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: use time.Timer over time.After #1802

Merged
merged 3 commits into from Jan 11, 2023
Merged

fix: use time.Timer over time.After #1802

merged 3 commits into from Jan 11, 2023

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented Jan 6, 2023

Can reduce memory usage for stacking timers that are not gc'ed in retry loops.

Fixes: #1761

Can reduce memory usuage for stacking timers that are not gc'ed in
retry loops.

Fixes: googleapis#1761
@codyoss codyoss requested review from a team and yoshi-approver as code owners January 6, 2023 18:01
@codyoss codyoss requested a review from tritone January 6, 2023 18:01
@codyoss codyoss enabled auto-merge (squash) January 6, 2023 18:16
@codyoss codyoss changed the title fix: use timeTimer over time.After fix: use time.Timer over time.After Jan 6, 2023
@codyoss codyoss added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 6, 2023
Copy link
Member

@quartzmo quartzmo left a comment

Choose a reason for hiding this comment

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

LGTM

@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 9, 2023
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.

Memory Leak from time.After
4 participants