AlariCode / nestjs-rmq

A custom library for NestJS microservice. It allows you to use RabbitMQ or AMQP.
https://purpleschool.ru
MIT License
285 stars 38 forks source link

Feature Request: Exclusive Queue #43

Closed falahati closed 2 years ago

falahati commented 2 years ago

This is a feature request for allowing users to create a nameless exclusive queue.

Defining a queue without a name automatically generates a random name for the queue but this library regards an empty queue name as the absence of a value and therefore such functionality provided by the underlying library is not available to the users of this library.

Also, an isQueueExlusive config can be added to allow users to specifically set the exclusivity of the defined queue with the default value of true for when the queue name is empty and false when there is a specific queue name provided.

This is a simple change and I can probably offer to create a small PR if you are willing to accept it.

AlariCode commented 2 years ago

@falahati, thanks! I think it will be great. You are welcome to create a PR.

AlariCode commented 2 years ago

Published in version 2.5.0.