Skip to content

Commit

Permalink
Remove deprecated exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed May 20, 2022
1 parent 6f57a26 commit 76d0307
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 44 deletions.
16 changes: 0 additions & 16 deletions src/Connection/Http2ConnectionException.php

This file was deleted.

24 changes: 0 additions & 24 deletions src/Connection/Http2StreamException.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/Interceptor/FollowRedirects.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ private function followRedirects(
DelegateHttpClient $client,
Cancellation $cancellationToken
): Response {
$previousResponse = null;

$maxRedirects = $this->maxRedirects;
$requestNr = 2;

Expand Down
3 changes: 1 addition & 2 deletions src/Interceptor/RetryRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Amp\ForbidCloning;
use Amp\ForbidSerialization;
use Amp\Http\Client\ApplicationInterceptor;
use Amp\Http\Client\Connection\Http2ConnectionException;
use Amp\Http\Client\Connection\UnprocessedRequestException;
use Amp\Http\Client\DelegateHttpClient;
use Amp\Http\Client\Request;
Expand Down Expand Up @@ -37,7 +36,7 @@ public function request(
return $httpClient->request(clone $request, $cancellation);
} catch (UnprocessedRequestException $exception) {
// Request was deemed retryable by connection, so carry on.
} catch (SocketException | Http2ConnectionException $exception) {
} catch (SocketException $exception) {
if (!$request->isIdempotent()) {
throw $exception;
}
Expand Down

0 comments on commit 76d0307

Please sign in to comment.