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

readdb: improve HandleEvents goroutine exiting #172

Merged

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Nov 11, 2019

Rename errCh to doneCh (error is not needed) and always send to it when one of
the HandleEvents functions exits (not only on error).

This will ensure that all the goroutines will be stopped also if one of them
returns without an error.

Rename errCh to doneCh (error is not needed) and always send to it when one of
the HandleEvents functions exits (not only on error).

This will ensure that all the goroutines will be stopped also if one of them
returns without an error.
@sgotti sgotti force-pushed the readdb_improve_handleevents_goroutines_exit branch from b513867 to d679254 Compare November 12, 2019 10:03
@sgotti sgotti merged commit 2076b17 into agola-io:master Nov 12, 2019
@sgotti sgotti deleted the readdb_improve_handleevents_goroutines_exit branch February 19, 2020 09:07
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
…ts_goroutines_exit

readdb: improve HandleEvents goroutine exiting
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
…ts_goroutines_exit

readdb: improve HandleEvents goroutine exiting
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.

None yet

1 participant