Skip to content

Consolidate pollForSettingChanges with other producer subroutines#855

Merged
brandur merged 1 commit intomasterfrom
brandur-consolidate-wait-group
Apr 28, 2025
Merged

Consolidate pollForSettingChanges with other producer subroutines#855
brandur merged 1 commit intomasterfrom
brandur-consolidate-wait-group

Conversation

@brandur
Copy link
Contributor

@brandur brandur commented Apr 26, 2025

I made some changes to the producer in #848 to fix an intermittent test
introduced by queue pause/unpause by moving a goroutine into the
producer's main start goroutine and making sure to wait on it finishing
before leaving the producer.

I didn't notice at the time that there's already a place where some
other producer subroutines are started, and we can clean things up
somewhat by moving pollForSettingChanges down to where the other
subroutines are booted and consolidating the wait group.

I made some changes to the producer in #848 to fix an intermittent test
introduced by queue pause/unpause by moving a goroutine into the
producer's main start goroutine and making sure to wait on it finishing
before leaving the producer.

I didn't notice at the time that there's already a place where some
other producer subroutines are started, and we can clean things up
somewhat by moving `pollForSettingChanges` down to where the other
subroutines are booted and consolidating the wait group.
@brandur brandur requested a review from bgentry April 26, 2025 05:52
@brandur
Copy link
Contributor Author

brandur commented Apr 28, 2025

Thx.

@brandur brandur merged commit 4dadca0 into master Apr 28, 2025
10 checks passed
@brandur brandur deleted the brandur-consolidate-wait-group branch April 28, 2025 05:52
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