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

pool: Keep hub waitgroup local. #358

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Sep 13, 2023

The waitgroup for the hub is currently being passed down into all various configuration structs for each of the goroutines it runs which requires a lot of plumbing and is quite error prone.

This addresses that by modifying the logic to keep the hub waitgroup local to the run method and removes the aforementioned unnecessary plumbing.

These changes have also exposed an issue with endpoint.run in that it never terminates, but this commit does not fix that issue.

The waitgroup for the hub is currently being passed down into all
various configuration structs for each of the goroutines it runs which
requires a lot of plumbing and is quite error prone.

This addresses that by modifying the logic to keep the hub waitgroup
local to the run method and removes the aforementioned unnecessary
plumbing.

These changes have also exposed an issue with endpoint.run in that it
never terminates, but this commit does not fix that issue.
@jholdstock jholdstock merged commit a35152f into decred:master Sep 14, 2023
2 checks passed
@davecgh davecgh deleted the local_hug_waitgroup branch September 14, 2023 07: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