Skip to content

fix: Fix OperationMsg route assignment for non-legacy messages #571

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kevincatty
Copy link

Describe your changes and provide context

This commit corrects the parameter assignment in NewOperationMsg when handling non-legacy messages. Previously both Route and Name fields were populated with the message type URL, which might lead to confusion. Now Route is explicitly set to empty string for non-legacy messages while Name retains the message type URL, better reflecting their intended purposes:

  • Route: Only populated for legacy messages (via LegacyMsg interface)
  • Name: Always uses the message type URL regardless of message type

This maintains backward compatibility with legacy messages while establishing clearer field semantics for new message types.

Testing performed to validate your change

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.

1 participant