-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing the ability to provide custom retryMap #1488
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
I signed it! |
CLAs look good, thanks! |
src/Google/Client.php
Outdated
@@ -795,7 +795,7 @@ public function execute(RequestInterface $request, $expectedClass = null) | |||
// this is where most of the grunt work is done | |||
$http = $this->authorize(); | |||
|
|||
return Google_Http_REST::execute($http, $request, $expectedClass, $this->config['retry']); | |||
return Google_Http_REST::execute($http, $request, $expectedClass, null, $this->config['retry']); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Will be initiated like so: $this->client = new Google_Client(array('retry'=>array('retries'=>99),'retryMap'=>$this->retryMap));
src/Google/Client.php
Outdated
@@ -795,7 +796,7 @@ public function execute(RequestInterface $request, $expectedClass = null) | |||
// this is where most of the grunt work is done | |||
$http = $this->authorize(); | |||
|
|||
return Google_Http_REST::execute($http, $request, $expectedClass, $this->config['retry']); | |||
return Google_Http_REST::execute($http, $request, $expectedClass, $this->config['retry'], $this->config['retry_map']); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/Google/Client.php
Outdated
$this->config['retry'], | ||
$this->config['retry_map'] | ||
); | ||
|
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Can someone merge this? |
@mattwhisenhunt is this okay to merge? |
Guys, is this right? I know this fixes the ability to provide the custom retryMap, but why are we passing Even the Am I missing something here? |
@ggmartins091 it looks correct to me. |
@dwsupplee Oh, my bad. I get it now. So for me to change the number of retries I would need to do Thats what I was missing. Thank you. |
#1487