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

discovery/azure: more robust handling of go routines #5106

Merged
merged 1 commit into from
Jan 18, 2019

Conversation

simonpasquier
Copy link
Member

The existing code led to issues that are quite hard to detect in code reviews (see #5088). This change refactors the logic to use a sync.WaitGroup instead of assuming that all goroutines will return something to the receiving channel.

cc @sylr @brian-brazil

@brian-brazil
Copy link
Contributor

👍

@tariq1890
Copy link
Contributor

Awesome! Thanks @simonpasquier

@cstyan
Copy link
Member

cstyan commented Jan 17, 2019

👍 nice

@simonpasquier simonpasquier merged commit 68e4c21 into prometheus:master Jan 18, 2019
@simonpasquier simonpasquier deleted the improve-azure-sd branch January 18, 2019 08:55
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.

4 participants