decred / dcrpool

decred mining pool
ISC License
29 stars 27 forks source link

pool: Consolidate waitgroup logic. #373

Closed davecgh closed 1 year ago

davecgh commented 1 year ago

This switches client, hub, endpoint over to use the new pattern that consolidates the waitgroup logic in a single location.

This pattern is easier to reason about and less error prone since it's trivial to see at a glance that the calls to Done are happening as intended versus having to chase them down all over the code.