Skip to content

Commit 5122339

Browse files
Guzzle Backoff Correction
The first parameter in Guzzle’s BackoffPlugin is the max number of retries to attempt.
1 parent a108d31 commit 5122339

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/services/object-store/migrating-containers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ Requirements
3737
3838
use Guzzle\Plugin\Backoff\BackoffPlugin;
3939
40-
// set timeout in secs
41-
$timeout = 10;
40+
// maximum number of retries
41+
$maxRetries = 10;
4242
4343
// set HTTP error codes
4444
$httpErrors = array(500, 503, 408);
4545
46-
$backoffPlugin = BackoffPlugin::getExponentialBackoff($timeout, $httpErrors);
46+
$backoffPlugin = BackoffPlugin::getExponentialBackoff($maxRetries, $httpErrors);
4747
$client->addSubscriber($backoffPlugin);
4848
4949

0 commit comments

Comments
 (0)