Skip to content

Commit 912e6f4

Browse files
authored
1 parent d7b46d4 commit 912e6f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Queue/Connectors/RabbitMQConnector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ protected function createConnection(array $config): AbstractConnection
7272
/** @var AbstractConnection $connection */
7373
$connection = Arr::get($config, 'connection', AMQPLazyConnection::class);
7474

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

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

0 commit comments

Comments
 (0)