Browse Source

读取配置在queue.connections.rabbitmq

visuddhinanda 11 months ago
parent
commit
29aad4d5a3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api-v8/app/Console/Commands/ProcessDeadLetterQueue.php

+ 2 - 2
api-v8/app/Console/Commands/ProcessDeadLetterQueue.php

@@ -30,13 +30,13 @@ class ProcessDeadLetterQueue extends Command
         $requeue = $this->option('requeue');
         $requeue = $this->option('requeue');
         $delete = $this->option('delete');
         $delete = $this->option('delete');
 
 
-        $config = config('rabbitmq.connection');
+        $config = config('queue.connections.rabbitmq');
         $connection = new AMQPStreamConnection(
         $connection = new AMQPStreamConnection(
             $config['host'],
             $config['host'],
             $config['port'],
             $config['port'],
             $config['user'],
             $config['user'],
             $config['password'],
             $config['password'],
-            $config['vhost']
+            $config['virtual_host']
         );
         );
 
 
         $channel = $connection->channel();
         $channel = $connection->channel();