Skip to content

Commit

Permalink
initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
dgafka committed Aug 27, 2024
1 parent c6a93b2 commit a156a3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/Amqp/src/AmqpInboundChannelAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function receiveWithTimeout(int $timeout = 0): ?Message
$subscriptionConsumer->consume($timeout ?: $this->receiveTimeoutInMilliseconds);

return $this->queueChannel->receive();
} catch (AMQPConnectionException $exception) {
} catch (AMQPConnectionException|\AMQPChannelException $exception) {
throw new ConnectionException('Failed to connect to AMQP broker', 0, $exception);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/Enqueue/src/EnqueueInboundChannelAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ abstract public function connectionException(): string;

private function isConnectionException(Exception $exception): bool
{
return is_subclass_of($exception, $this->connectionException()) || $exception::class === $this->connectionException() || $exception instanceof ConnectionException;
return is_subclass_of($exception, $this->connectionException()) || $exception::class === $this->connectionException();
}

public function getQueueName(): string
Expand Down

0 comments on commit a156a3f

Please sign in to comment.