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

main: cancel ctx on config reload #512

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

gumpt
Copy link
Contributor

@gumpt gumpt commented Jan 26, 2022

This cancels the context passed to the background scrape job when the
endpoint to reload configuration is hit. This prevents a goroutine leak
and scrapes based on an old config running.

Fixes #499.

This cancels the context passed to the background scrape job when the
endpoint to reload configuration is hit. This prevents a goroutine leak
and scrapes based on an old config running.

Fixes nerdswords#499.
@gumpt
Copy link
Contributor Author

gumpt commented Jan 26, 2022

@thomaspeitz unsure how to request a review, and would appreciate one! 😅

@thomaspeitz
Copy link
Contributor

@gumpt Thanks a lot for your PR :)

Currently full in client projects and not having much free "open source" time.
Hope to get this released fast.

@thomaspeitz thomaspeitz merged commit 10790e9 into nerdswords:master Feb 24, 2022
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.

[BUG] Config reload leaks goroutines
2 participants