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 incorrect usage of sync.WaitGroup in RulesFromFile #7

Merged
merged 3 commits into from
Jun 21, 2023

Conversation

EthanThatOneKid
Copy link
Owner

@EthanThatOneKid EthanThatOneKid commented Jun 21, 2023

This PR fixes the incorrect usage of sync.WaitGroup in the RulesFromFile function. The previous implementation resulted in improper synchronization of goroutines and potential race conditions. The fix introduces a separate innerWg WaitGroup to track the completion of inner goroutines, ensuring proper synchronization and preventing premature completion of the outer WaitGroup.

Resolves #6.

@EthanThatOneKid EthanThatOneKid merged commit 41e4fed into main Jun 21, 2023
@EthanThatOneKid EthanThatOneKid deleted the fix/bugs branch June 24, 2023 05:21
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.

Fix sync.waitGroup ignorance
1 participant