Skip to content

Commit 355d84c

Browse files
author
Jamie Hannaford
committed
Merge pull request #585 from AdamMerrifield/working
Guzzle Backoff Correction
2 parents 74dbce4 + baeaf15 commit 355d84c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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

doc/services/object-store/objects.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Get content of file
259259
.. code-block:: php
260260
261261
/** @param $content Guzzle\Http\EntityBody */
262-
$content = $object->getContainer();
262+
$content = $object->getContent();
263263
264264
265265
Get type of file

0 commit comments

Comments
 (0)