Skip to content

refactor: avoid dispatcher usage for event callbacks#5808

Merged
ndr-brt merged 1 commit into
mainfrom
5658-avoid-dispatcher-callback
Jun 10, 2026
Merged

refactor: avoid dispatcher usage for event callbacks#5808
ndr-brt merged 1 commit into
mainfrom
5658-avoid-dispatcher-callback

Conversation

@ndr-brt

@ndr-brt ndr-brt commented Jun 10, 2026

Copy link
Copy Markdown
Member

What this PR changes/adds

The callback event dispatcher was using the dispatcher registry, but that turned out to be an unnecessary abstraction, demonstrated by the "participantContextId issue #5658 : what's the point to need the participantContextId to dispatch the callback, since it's already part of the Event?

The specialization for the participant eventually should be applied on the CallbackRegistry, as currently there's no way to register a static callback for a particular participant, but it will described in a separated issue (#5809)

This issue takes care to avoid the dispatcher registry and to define a dedicated CallbackClient that dispatches the callback if needed.

On a general term, I think the whole "dispatcher registry" think was a premature abstraction and it could be removed as it doesn't provide any real value nowadays. (#5810)

Why it does that

refactor, cleanup

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Who will sponsor this feature?

Please @-mention the committer that will sponsor your feature.

Linked Issue(s)

Closes #5658

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt requested a review from a team as a code owner June 10, 2026 06:52
@ndr-brt ndr-brt added the refactoring Cleaning up code and dependencies label Jun 10, 2026
@ndr-brt ndr-brt merged commit 634da1b into main Jun 10, 2026
56 of 61 checks passed
@ndr-brt ndr-brt deleted the 5658-avoid-dispatcher-callback branch June 10, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Cleaning up code and dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor events to carry the participant context id

2 participants