Skip to content

Commit 76b9805

Browse files
committed
enhancement: updates default retry mode from legacy to standard
1 parent e14b2f6 commit 76b9805

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"type": "enhancement",
4+
"category": "Retry",
5+
"description": "Updates default retry mode from `legacy` to `standard` ."
6+
}
7+
]

src/Retry/ConfigurationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ConfigurationProvider extends AbstractConfigurationProvider
4646
implements ConfigurationProviderInterface
4747
{
4848
const DEFAULT_MAX_ATTEMPTS = 3;
49-
const DEFAULT_MODE = 'legacy';
49+
const DEFAULT_MODE = 'standard';
5050
const ENV_MAX_ATTEMPTS = 'AWS_MAX_ATTEMPTS';
5151
const ENV_MODE = 'AWS_RETRY_MODE';
5252
const ENV_PROFILE = 'AWS_PROFILE';

tests/Retry/ConfigurationProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function (ConfigurationException $e) {
107107
public function testCreatesDefaultFromFallback()
108108
{
109109
$this->clearEnv();
110-
$expected = new Configuration('legacy', 3);
110+
$expected = new Configuration('standard', 3);
111111
/** @var ConfigurationInterface $result */
112112
$result = call_user_func(ConfigurationProvider::fallback())->wait();
113113
$this->assertSame($expected->toArray(), $result->toArray());
@@ -142,7 +142,7 @@ public function testUsesIniWithUseAwsConfigFileTrue()
142142
public function testIgnoresIniWithUseAwsConfigFileFalse()
143143
{
144144
$dir = $this->clearEnv();
145-
$expected = new Configuration('legacy', 3);
145+
$expected = new Configuration('standard', 3);
146146
file_put_contents($dir . '/config', $this->iniFile);
147147
putenv('HOME=' . dirname("garbageDirectory"));
148148
/** @var ConfigurationInterface $result */

0 commit comments

Comments
 (0)