Skip to content

Commit

Permalink
fix renew bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Aug 16, 2023
1 parent ba9f7d6 commit 7b6fca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function queueDriver():QueueDriverInterface

function consumer(string $topic,bool $renew = false):Consumer
{
if((!$renew) || !isset($this->consumer[$topic])){
if(($renew) || !isset($this->consumer[$topic])){
$driver = clone $this->driver;
if(!$driver->init($topic,$this->nodeId)){
throw new Exception("init queue topic:{$topic} driver fail");
Expand Down

0 comments on commit 7b6fca4

Please sign in to comment.