Skip to content

Commit c702965

Browse files
authored
Default max retries var was not defined. (#2529)
* Default max retries var was not defined. * Update version and changelog. [skip ci]
1 parent 02acffa commit c702965

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Change Log
22
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org)
33

4-
## 3.3.3-dev -
4+
## 3.3.3 - 2024-01-11
5+
6+
### Fixed
7+
8+
- Undefined variable notice for defaultMaxRetries (#2529)
59

610
## 3.3.2 - 2024-01-11
711

config/constants.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
---
88

99
# App
10-
TERMINUS_VERSION: '3.3.3-dev'
10+
TERMINUS_VERSION: '3.3.3'
1111

1212
# Connectivity
1313
TERMINUS_HOST: 'terminus.pantheon.io'

src/Request/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private function getClient($base_uri = null): ClientInterface
176176
private function createRetryDecider(): callable
177177
{
178178
$config = $this->getConfig();
179-
$maxRetries = $config->get('http_max_retries', $defaultMaxRetries);
179+
$maxRetries = $config->get('http_max_retries', 5);
180180
// Cap max retries at 10.
181181
$maxRetries = $maxRetries > 10 ? 10 : $maxRetries;
182182
$retryBackoff = $config->get('http_retry_backoff', 5);

0 commit comments

Comments
 (0)