Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option persistent does not work when using bunnyBus.send #88

Open
mglimmerveen opened this issue Jun 27, 2019 · 0 comments
Open

Option persistent does not work when using bunnyBus.send #88

mglimmerveen opened this issue Jun 27, 2019 · 0 comments

Comments

@mglimmerveen
Copy link

mglimmerveen commented Jun 27, 2019

Context

  • node version: 10.15.3
  • bunnybus version: 3.1.1
  • environment (node, browser): node

I took note of issue 84 and the relevant pull request.

What are you trying to achieve or the steps to reproduce ?

I'm trying to send a message directly to the queue and make it persistent. See the following code fragment:

const sendOptions = { persistent: true };
this.bunnyBus.send(message, queueName, sendOptions)

What result did you expect ?

I expected the created message to be persistent.

What result did you observe ?

The message was created, but not persistent according to RabbitMQ. However, the following fragment of code did work as expected:

const publishOptions = { persistent: true };
this.bunnyBus.publish(message, publishOptions)

I've also tried to use deliveryMode: 2; but unfortunately this had the same result. Both messages (the sent and published ones) targeted the same, durable queue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant