-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ability to pass 'properties' to Bunny session
With this change we will be able to define a `properties` property in the `Sneakers` configuration, that will be passed to `Bunny` when a connection is created. ```ruby Sneakers.configure({ amqp: 'amqp://guest:guest@localhost:5672', properties: { key: "value", key2: "value2" } }) ``` This can be useful, for example, to identify where a connection is coming from, when we have dozens of applications using a `RabbitMQ` instance. This is something that can already be done with `Bunny`: ```ruby Bunny.new(connection_string, { properties: { key: 'value' } }) ``` So we are just leveraging that functionality when the connection is created from `Sneakers`.
- Loading branch information
1 parent
e93a8cf
commit 90fd20f
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters