Skip to content

Commit

Permalink
fix: Resolve rebase issue
Browse files Browse the repository at this point in the history
  • Loading branch information
frankverhoeven committed Mar 14, 2022
1 parent 5ef7237 commit 86212e0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/GuzzleBundleRetryPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,16 @@ public function loadForClient(
$middleware = new Definition(GuzzleRetryMiddleware::class);
$middleware->setFactory([GuzzleRetryMiddleware::class, 'factory']);
$middleware->setArguments([
'max_retry_attempts' => $config['max_retry_attempts'],
'retry_only_if_retry_after_header' => $config['retry_only_if_retry_after_header'],
'retry_on_status' => $config['retry_on_status'],
'default_retry_multiplier' => $config['default_retry_multiplier'],
'retry_on_timeout' => $config['retry_on_timeout'],
'expose_retry_header' => $config['expose_retry_header'],
'retry_header' => $config['retry_header'],
'on_retry_callback' => $onRetryCallback,
[
'max_retry_attempts' => $config['max_retry_attempts'],
'retry_only_if_retry_after_header' => $config['retry_only_if_retry_after_header'],
'retry_on_status' => $config['retry_on_status'],
'default_retry_multiplier' => $config['default_retry_multiplier'],
'retry_on_timeout' => $config['retry_on_timeout'],
'expose_retry_header' => $config['expose_retry_header'],
'retry_header' => $config['retry_header'],
'on_retry_callback' => $onRetryCallback,
],
]);

$middleware->setPublic(true);
Expand Down

0 comments on commit 86212e0

Please sign in to comment.