Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #42 from uConnect/fix/rabbitmq-vhost
Browse files Browse the repository at this point in the history
Adds support for RabbitMQ vhost
  • Loading branch information
cmmarslender authored Nov 1, 2018
2 parents 24ac4e0 + 8d53b9e commit 4b4e21a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/WpMinions/RabbitMQ/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ public function __construct() {
'port' => 5672,
'username' => 'guest',
'password' => 'guest',
'vhost' => '/',
) );

$this->connection = new \PhpAmqpLib\Connection\AMQPStreamConnection( $rabbitmq_server['host'], $rabbitmq_server['port'], $rabbitmq_server['username'], $rabbitmq_server['password'] );
$this->connection = new \PhpAmqpLib\Connection\AMQPStreamConnection( $rabbitmq_server['host'], $rabbitmq_server['port'], $rabbitmq_server['username'], $rabbitmq_server['password'], $rabbitmq_server['vhost'] );
$this->channel = $this->connection->channel();

$rabbitmq_declare_passive_filter = apply_filters( 'wp_minion_rabbitmq_declare_passive_filter', false );
Expand Down

0 comments on commit 4b4e21a

Please sign in to comment.