The library we are using for rabbitmq is not maintained any longer https://github.com/streadway/amqp/pull/500#issuecomment-857652492 We should consider switching to https://github.com/rabbitmq/amqp091-go It has some useful features, like PublishWithContext()