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

Revert headers from being read-only upon message creation #1123

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

scottf
Copy link
Contributor

@scottf scottf commented Apr 19, 2024

This reverts the changes done in #1054 which made headers read-only as soon as they the message was constructed (either directly through constructors or via the fluent builder.) This has been reversed.
At publish call time, the entire message is copied and headers made read-only so they cannot be further modified and the protocol is built.

@scottf scottf changed the title Copy message just as part of publish to keep headers mutable until then. Copy message at publish to keep headers mutable until then. Apr 19, 2024
@scottf scottf changed the title Copy message at publish to keep headers mutable until then. Revert headers from being read-only upon message creation Apr 19, 2024
Copy link
Member

@aricart aricart left a comment

Choose a reason for hiding this comment

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

LGTM

@scottf scottf merged commit 4aab962 into main Apr 19, 2024
2 checks passed
@scottf scottf deleted the copy-message-to-keep-headers-mutable branch April 19, 2024 18:16
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