Skip to content

Commit 325c622

Browse files
authored
Add retry-http client (#726)
* Add retry-http client * Add comment about double test on getChunk * Refactore retry handling * Reduce default timeout * Improve logging messages * Use symfony/httpexception in tests * Use Symfony RetryableHttpClient * Remove timeout
1 parent 951f371 commit 325c622

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Connector/AsyncAwsSqsConnector.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use AsyncAws\Sqs\SqsClient;
77
use Illuminate\Contracts\Queue\Queue;
88
use Illuminate\Queue\Connectors\ConnectorInterface;
9-
use Symfony\Component\HttpClient\HttpClient;
109

1110
class AsyncAwsSqsConnector implements ConnectorInterface
1211
{
@@ -29,7 +28,7 @@ public function connect(array $config)
2928
}
3029

3130
return new AsyncAwsSqsQueue(
32-
new SqsClient($clientConfig, null, HttpClient::create(['timeout' => 30])),
31+
new SqsClient($clientConfig),
3332
$config['queue'],
3433
$config['prefix'] ?? '',
3534
$config['suffix'] ?? ''

0 commit comments

Comments
 (0)