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

Only configure publisher confirmation callbacks once [v9] #3256

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

dhickie
Copy link
Contributor

@dhickie dhickie commented Aug 13, 2024

This fixes #3246 by ensuring that publish confirmation delegates are only registered once. It does this in a slightly different way than the one that was suggested in the issue, as I noticed that v10 fixes this by moving the callback registration to inside the ExternalBusServices constructor. In v9 ExternalBusServices doesn't have an explicit constructor, so I've moved the call to ConfigureCallbacks to inside the lock where the static instance is initialised in CommandProcessor.

Copy link
Member

@iancooper iancooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to use the one-time initialization of the bus to do a one-time initialization of callbacks.

@iancooper iancooper merged commit 02cbf36 into BrighterCommand:release/9X Aug 13, 2024
15 of 17 checks passed
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.

3 participants