Skip to content

Commit 9edd15c

Browse files
Yahavmattwhisenhunt
authored andcommitted
Fixing the ability to provide custom retryMap (googleapis#1488)
Fixes googleapis#1487
1 parent 123ef5a commit 9edd15c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Google/Client.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ public function __construct(array $config = array())
130130
// Task Runner retry configuration
131131
// @see Google_Task_Runner
132132
'retry' => array(),
133+
'retry_map' => null,
133134

134135
// cache config for downstream auth caching
135136
'cache_config' => [],
@@ -795,7 +796,13 @@ public function execute(RequestInterface $request, $expectedClass = null)
795796
// this is where most of the grunt work is done
796797
$http = $this->authorize();
797798

798-
return Google_Http_REST::execute($http, $request, $expectedClass, $this->config['retry']);
799+
return Google_Http_REST::execute(
800+
$http,
801+
$request,
802+
$expectedClass,
803+
$this->config['retry'],
804+
$this->config['retry_map']
805+
);
799806
}
800807

801808
/**

0 commit comments

Comments
 (0)