Procházet zdrojové kódy

fix(async consumer): use "consume" method

roiwk před 1 rokem
rodič
revize
e6acf73c38
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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]);