Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chaz6chez committed Jun 3, 2024
1 parent 80df77f commit 9e5299f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Builders/Traits/MessageQueueMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,12 @@ public function consume(Worker $worker, bool $del = true): bool
if (!$this->_init) {
foreach ($queues as $queueName) {
$client->xGroup('CREATE', $queueName, $groupName,'0', true);
$queueStreams[$queueName] = '>';
}
$this->_init = true;
}
foreach ($queues as $queueName) {
$queueStreams[$queueName] = '>';
}
// group read
if($res = $client->xReadGroup(
$groupName, $consumerName, $queueStreams, $builderConfig->getPrefetchCount(),
Expand Down

0 comments on commit 9e5299f

Please sign in to comment.