Skip to content

fix: connect to the configured RabbitMQ vhost - #63

Open
SamuelGoulart wants to merge 1 commit into
lucassm02:mainfrom
SamuelGoulart:fix/rabbitmq-vhost-connection
Open

SamuelGoulart wants to merge 1 commit into
lucassm02:mainfrom
SamuelGoulart:fix/rabbitmq-vhost-connection

Conversation

@SamuelGoulart

Copy link
Copy Markdown
Contributor

Description

This fix passes virtualHost to setCredentials so the RabbitMQ connection is opened on the vhost configured via RABBIT_VIRTUAL_HOST, instead of always falling back to the default vhost (/).

What type of PR contains?

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🔥 Performance Improvements
  • 🧑‍💻 Code Refactor
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

This pull request closes the following issues:
Fixes #62

setCredentials wasn't receiving virtualHost, so connections landed on
the default RabbitMQ vhost instead of the configured one. Any exchange
that happens to share a name on both vhosts will accept publishes
without error while the message never reaches the intended queue.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

Fix: RabbitMQ connection ignores the configured virtual host

1 participant