Please answer the following questions for yourself before submitting an issue.
[X] I am running the latest version
[X] I checked the documentation and found no answer
[X] I checked to make sure that this issue has not already been filed
[X] I'm reporting the issue to the correct repository
Current Behavior
Specifying the durable_name consumer option for NATS is not possible as it gets overwritten with the name of the service. This is important, as defining ephemeral streams in NATS requires that this option be set to null.
Expected Behavior
The durable_name consumer option can be set and does not get overridden. Perhaps if not specified, the option can default to the name of the service.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Specify the durable_name option in the middleware construction
What is your use-case to use ephemeral messages? We created this library to add a reliable message sending option to Moleculer. Disabling durability breaks this feature.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Current Behavior
Specifying the
durable_name
consumer option for NATS is not possible as it gets overwritten with the name of the service. This is important, as defining ephemeral streams in NATS requires that this option be set tonull
.Expected Behavior
The
durable_name
consumer option can be set and does not get overridden. Perhaps if not specified, the option can default to the name of the service.Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Specify the
durable_name
option in the middleware constructionAdd a console.log / breakpoint in
./src/adapters/nats.js:212
to print the consumer optionsE.g.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Thanks in advance! Isaac