Skip to content

Commit 04b947a

Browse files
authored
implement size() method
1 parent 911770d commit 04b947a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/RabbitMQQueue.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public function __construct(AMQPStreamConnection $amqpConnection, $config)
7171
*/
7272
public function size($queue = null)
7373
{
74-
// TODO: Implement size() method.
74+
list(, $messageCount) = $this->channel->queue_declare($this->getQueueName($queue), true);
75+
76+
return $messageCount;
7577
}
7678

7779
/**

0 commit comments

Comments
 (0)