@@ -255,12 +255,27 @@ export async function generalPartition(
255255 } ) ;
256256
257257 const securityInput = await extractSecurity ( client . _options . security ) ;
258+ const requestSecurity = resolveGlobalSecurity ( securityInput ) ;
259+
258260 const context = {
259261 operationID : "partition" ,
260262 oAuth2Scopes : [ ] ,
261263 securitySource : client . _options . security ,
264+ retryConfig : options ?. retries
265+ || client . _options . retryConfig
266+ || {
267+ strategy : "backoff" ,
268+ backoff : {
269+ initialInterval : 3000 ,
270+ maxInterval : 720000 ,
271+ exponent : 1.88 ,
272+ maxElapsedTime : 1800000 ,
273+ } ,
274+ retryConnectionErrors : true ,
275+ }
276+ || { strategy : "none" } ,
277+ retryCodes : options ?. retryCodes || [ "502" , "503" , "504" ] ,
262278 } ;
263- const requestSecurity = resolveGlobalSecurity ( securityInput ) ;
264279
265280 const requestRes = client . _createRequest ( context , {
266281 security : requestSecurity ,
@@ -278,19 +293,8 @@ export async function generalPartition(
278293 const doResult = await client . _do ( req , {
279294 context,
280295 errorCodes : [ "422" , "4XX" , "5XX" ] ,
281- retryConfig : options ?. retries
282- || client . _options . retryConfig
283- || {
284- strategy : "backoff" ,
285- backoff : {
286- initialInterval : 3000 ,
287- maxInterval : 720000 ,
288- exponent : 1.88 ,
289- maxElapsedTime : 1800000 ,
290- } ,
291- retryConnectionErrors : true ,
292- } ,
293- retryCodes : options ?. retryCodes || [ "502" , "503" , "504" ] ,
296+ retryConfig : context . retryConfig ,
297+ retryCodes : context . retryCodes ,
294298 } ) ;
295299 if ( ! doResult . ok ) {
296300 return doResult ;
0 commit comments