Skip to content

Commit

Permalink
fixed: issue #341
Browse files Browse the repository at this point in the history
  • Loading branch information
adm-bome committed Jul 16, 2020
1 parent edf0bf7 commit 755ebd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Queue/Connectors/RabbitMQConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ protected function createConnection(array $config): AbstractConnection
/** @var AbstractConnection $connection */
$connection = Arr::get($config, 'connection', AMQPLazyConnection::class);

// manually disable heartbeat so long-running tasks will not fail
Arr::add($config, 'options.heartbeat', 0);
// disable heartbeat when not configured, so long-running tasks will not fail
$config = Arr::add($config, 'options.heartbeat', 0);

return $connection::create_connection(
Arr::shuffle(Arr::get($config, 'hosts', [])),
Expand Down

0 comments on commit 755ebd0

Please sign in to comment.