From fdd5948574cd18889a794c13e11b85558a4696ed Mon Sep 17 00:00:00 2001 From: g41797 Date: Mon, 27 May 2024 13:52:21 +0300 Subject: [PATCH] Allow zero receive_queue_size --- src/ConsumerOptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConsumerOptions.php b/src/ConsumerOptions.php index ab9ccad..dee11f0 100644 --- a/src/ConsumerOptions.php +++ b/src/ConsumerOptions.php @@ -144,7 +144,7 @@ public function setNackRedeliveryDelay(int $seconds) */ public function setReceiveQueueSize(int $size) { - if ($size <= 0) { + if ($size < 0) { $size = 1000; } $this->data[ self::RECEIVE_QUEUE_SIZE ] = $size;