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 11, 2023
1 parent 3b5f250 commit ba9f7d6
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 @@ -41,7 +41,7 @@ function consumer(string $topic,bool $renew = false):Consumer

function producer(string $topic,bool $renew = false):Producer
{
if((!$renew) || !isset($this->producer[$topic])){
if(($renew) || !isset($this->producer[$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 ba9f7d6

Please sign in to comment.