Skip to content

Commit 6611570

Browse files
committed
default sleep_on_error value
1 parent c5ffbe2 commit 6611570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/RabbitMQQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(AMQPConnection $amqpConnection, $config)
4040
$this->configExchange = $config['exchange_params'];
4141
$this->declareExchange = $config['exchange_declare'];
4242
$this->declareBindQueue = $config['queue_declare_bind'];
43-
$this->sleepOnError = $config['sleep_on_error'];
43+
$this->sleepOnError = isset($config['sleep_on_error']) ? $config['sleep_on_error'] : 5;
4444

4545
$this->channel = $this->getChannel();
4646
}

0 commit comments

Comments
 (0)