rabbitmq / amqp091-go

An AMQP 0-9-1 Go client maintained by the RabbitMQ team. Originally by @streadway: `streadway/amqp`
Other
1.49k stars 135 forks source link

Undeprecate non-context publish functions #259

Closed Zerpet closed 5 months ago

Zerpet commented 5 months ago

The context was not honoured in any of the *WithContext functions. This is confusing, and arguably broken. However, we cannot immediately fix the context-support situation due to https://github.com/rabbitmq/amqp091-go/issues/124#issuecomment-1578529925

This commit undeprecates the non-context variants of publish, and documents that both variants are equivalent. The example now favours the non-context variants.

Fixes #195