Skip to content

Commit

Permalink
Default max retries var was not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
kporras07 authored Jan 11, 2024
1 parent 02acffa commit 3e1e11f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private function getClient($base_uri = null): ClientInterface
private function createRetryDecider(): callable
{
$config = $this->getConfig();
$maxRetries = $config->get('http_max_retries', $defaultMaxRetries);
$maxRetries = $config->get('http_max_retries', 5);
// Cap max retries at 10.
$maxRetries = $maxRetries > 10 ? 10 : $maxRetries;
$retryBackoff = $config->get('http_retry_backoff', 5);
Expand Down

0 comments on commit 3e1e11f

Please sign in to comment.