Skip to content

Conversation

@arjenlentz
Copy link
Contributor

The Go implementation of simplegrep didn't work. I fixed it by moving the wg.Add() call which should be outside of the go routine (as per the waitgroup docs). It was a finicky one to catch as the program would just complete with 0 files scanned.

@flier flier merged commit 7be5d40 into flier:master Aug 1, 2022
@flier
Copy link
Owner

flier commented Aug 1, 2022

Thanks

@arjenlentz arjenlentz deleted the arjenlentz-simplegrep-wgadd branch August 5, 2022 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.

2 participants