Selaa lähdekoodia

fix(async consumer): use "consume" method

roiwk 1 vuosi sitten
vanhempi
commit
a8fe008854
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/Client.php

+ 1 - 1
src/Client.php

@@ -95,7 +95,7 @@ class Client
                 }, $reject)
                 ->then(function (Channel $channel) use ($reject, $consumer) {
                     $this->logger?->debug('Waiting:['.getmypid().'] Waiting for messages.', []);
-                    $channel->run(
+                    $channel->consume(
                         function (Message $message, Channel $channel, AsyncClient $client) use ($reject, $consumer) {
                             $this->logger?->info('Received:['.getmypid().']: '.$message->content, [$message]);