moleculerjs / moleculer-channels

Reliable messages for Moleculer services via external queue/channel/topic.
MIT License
72 stars 15 forks source link

asserting dead-letter exchange and queue #68

Closed ujwal-setlur closed 1 year ago

ujwal-setlur commented 1 year ago

This is a PR to assert the dead-letter exchange and queue in the amp adapter, to address https://github.com/moleculerjs/moleculer-channels/issues/67

The PR asserts the exchange and queue during subscription of the first channel. This was tested by throwing an exception in the channel handler and checking the dead-letter queue on RabbitMQ.

ujwal-setlur commented 1 year ago

@AndreMaz Thanks for the comments. I will review.

ujwal-setlur commented 1 year ago

@AndreMaz I have addressed comments. I will add a test as well.