Skip to content

Commit

Permalink
Update Consumer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0NL authored and nekufa committed Nov 20, 2023
1 parent 7dfde72 commit 0711760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Consumer/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ public function handle(Closure $handler, Closure $emptyHandler = null, bool $ack

$this->create();

$this->client->subscribe($handlerSubject, function ($message) use ($handler, $runtime) {
$this->client->subscribe($handlerSubject, function ($message, $replyTo) use ($handler, $runtime) {
if (!$message->isEmpty()) {
$runtime->empty = false;
$runtime->processed++;
$handler($message);
$handler($message, $replyTo);
}
});

Expand Down

0 comments on commit 0711760

Please sign in to comment.