Skip to content

Commit

Permalink
Merge pull request #27 from g41797/main
Browse files Browse the repository at this point in the history
Allow zero receive_queue_size
  • Loading branch information
ikilobyte authored May 28, 2024
2 parents d216afb + fdd5948 commit 8d59941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConsumerOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8d59941

Please sign in to comment.