File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
doc/services/object-store Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments