File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public function declareQueue(string $queueName)
9393 throw new RuntimeException ("Queue ` {$ queueName }` is not configured. " );
9494 }
9595
96- $ channel =
96+ $ channel =
9797 $ queue = $ this ->queues [$ queueName ];
9898 if (!isset ($ this ->queuesDeclared [$ queueName ])) {
9999 if (ArrayHelper::isAssociative ($ queue )) {
@@ -254,8 +254,8 @@ public function deleteQueue(string $queueName)
254254 */
255255 public function deleteExchange (string $ exchangeName )
256256 {
257- if (!isset ($ this ->queues [$ exchangeName ])) {
258- throw new RuntimeException ("Queue {$ exchangeName } is not configured. Delete is aborted. " );
257+ if (!isset ($ this ->exchanges [$ exchangeName ])) {
258+ throw new RuntimeException ("Exchange {$ exchangeName } is not configured. Delete is aborted. " );
259259 }
260260 $ this ->getChannel ()->exchange_delete ($ exchangeName );
261261 }
You can’t perform that action at this time.
0 commit comments