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

Default message priority should be 4, not 0 #313

Open
mkuratczyk opened this issue Dec 14, 2023 · 0 comments
Open

Default message priority should be 4, not 0 #313

mkuratczyk opened this issue Dec 14, 2023 · 0 comments

Comments

@mkuratczyk
Copy link

According to the specification, the default priority should be 4:
https://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-header
It's also mentioned in a comment:
https://github.com/Azure/go-amqp/blob/main/message.go#L306

However, currently, it is implicitly set to 0, since that's the default for uint8. For example, I believe this test should pass after removing Priority: 4 but it fails.

Similar issue in AMQP.Net Lite from a few years ago: Azure/amqpnetlite#301

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

No branches or pull requests

1 participant