Skip to content

Commit

Permalink
Update Consumer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0NL authored Nov 22, 2023
1 parent 73d6ef9 commit 0b772c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Consumer/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public function create($ifNotExists = true): self
return $this;
}

public function update(): self
{
return $this->create(false);
}

public function delete(): self
{
$this->client->api('CONSUMER.DELETE.' . $this->getStream() . '.' . $this->getName());
Expand Down

0 comments on commit 0b772c3

Please sign in to comment.