Skip to content

Commit 6a4a49e

Browse files
committed
minor #30803 [Messenger] Remove unused option in the Doctrine transport (vincenttouzet)
This PR was merged into the 4.3-dev branch. Discussion ---------- [Messenger] Remove unused option in the Doctrine transport | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | This PR remove the unused option `loop_sleep` in the Messenger Doctrine transport Commits ------- 4811400372 [Messenger] Remove unused option in the Doctrine transport
2 parents fabc001 + 5c78295 commit 6a4a49e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Transport/Doctrine/Connection.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class Connection
3333
'table_name' => 'messenger_messages',
3434
'queue_name' => 'default',
3535
'redeliver_timeout' => 3600,
36-
'loop_sleep' => 200000,
3736
'auto_setup' => true,
3837
];
3938

@@ -46,7 +45,6 @@ class Connection
4645
* * connection: name of the Doctrine's entity manager
4746
* * queue_name: name of the queue
4847
* * redeliver_timeout: Timeout before redeliver messages still in handling state (i.e: delivered_at is not null and message is still in table). Default 3600
49-
* * loop_sleep: Number of micro seconds to wait for a next message to handle
5048
* * auto_setup: Whether the table should be created automatically during send / get. Default : true
5149
*/
5250
private $configuration = [];
@@ -80,7 +78,6 @@ public static function buildConfiguration($dsn, array $options = [])
8078
'table_name' => $options['table_name'] ?? ($query['table_name'] ?? self::DEFAULT_OPTIONS['table_name']),
8179
'queue_name' => $options['queue_name'] ?? ($query['queue_name'] ?? self::DEFAULT_OPTIONS['queue_name']),
8280
'redeliver_timeout' => $options['redeliver_timeout'] ?? ($query['redeliver_timeout'] ?? self::DEFAULT_OPTIONS['redeliver_timeout']),
83-
'loop_sleep' => $options['loop_sleep'] ?? ($query['loop_sleep'] ?? self::DEFAULT_OPTIONS['loop_sleep']),
8481
'auto_setup' => $options['auto_setup'] ?? ($query['auto_setup'] ?? self::DEFAULT_OPTIONS['auto_setup']),
8582
];
8683

0 commit comments

Comments
 (0)