Producer keepalive must be without timeout

This commit is contained in:
2021-02-11 18:24:47 +03:00
parent 257d09cffb
commit ce9d1824d9

View File

@@ -60,7 +60,7 @@ final class NsqTransport implements TransportInterface
public function get(): iterable
{
try {
$this->producer->receive(); // keepalive, handle heartbeat messages
$this->producer->receive(0); // keepalive, handle heartbeat messages
} catch (Throwable $e) {
$this->logger->error('Producer keepalive failed.', ['exception' => $e]);
}