Open mkuratczyk opened 8 months ago
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.
0
uint8
Priority: 4
Similar issue in AMQP.Net Lite from a few years ago: https://github.com/Azure/amqpnetlite/issues/301
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 foruint8
. For example, I believe this test should pass after removingPriority: 4
but it fails.Similar issue in AMQP.Net Lite from a few years ago: https://github.com/Azure/amqpnetlite/issues/301