Skip to content

Commit

Permalink
Fix displatches typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Dec 21, 2023
1 parent ae0a894 commit b958b83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/google-cloud-queues.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'rate_limits' => [
'max_burst_size' => 10,
'max_concurrent_dispatches' => 10,
'max_displatches_per_second' => 10,
'max_dispatches_per_second' => 10,
],
'retry_config' => [
'max_attempts' => 5,
Expand All @@ -25,7 +25,7 @@
// 'rate_limits' => [
// 'max_burst_size' => 10,
// 'max_concurrent_dispatches' => 75,
// 'max_displatches_per_second' => 20,
// 'max_dispatches_per_second' => 20,
// ],
// 'retry_config' => [
// 'max_attempts' => 5,
Expand All @@ -39,4 +39,4 @@
'name' => 'queue2',
],
],
];
];
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function updateQueue($queueName, $options)
$rateLimits = new RateLimits;
$rateLimits->setMaxBurstSize($options['rate_limits']['max_burst_size']);
$rateLimits->setMaxConcurrentDispatches($options['rate_limits']['max_concurrent_dispatches']);
$rateLimits->setMaxDispatchesPerSecond($options['rate_limits']['max_displatches_per_second']);
$rateLimits->setMaxDispatchesPerSecond($options['rate_limits']['max_dispatches_per_second'] ?? $options['rate_limits']['max_displatches_per_second']);
$queue->setRateLimits($rateLimits);

$retryConfig = new RetryConfig;
Expand All @@ -68,4 +68,4 @@ public function updateQueue($queueName, $options)

$this->client->updateQueue($queue);
}
}
}

0 comments on commit b958b83

Please sign in to comment.