diff --git a/bundle/src/Comms/Comms.php b/bundle/src/Comms/Comms.php index 0f82a52..697ed80 100644 --- a/bundle/src/Comms/Comms.php +++ b/bundle/src/Comms/Comms.php @@ -27,8 +27,7 @@ public function __construct( private InternalConfig $internalConfig, private InstanceUrlResolver $instanceUrlResolver, private MessageBusInterface $bus, - ) { - } + ) {} public function signature(string $content): string { @@ -72,7 +71,7 @@ public function send( [ 'headers' => $headers, 'body' => $jsonPayload, - 'timeout' => 5, + 'timeout' => 15, ] ); @@ -93,7 +92,7 @@ public function send( } catch (HttpExceptionInterface $e) { throw new CommsApiFailedException( 'comms event to ' . $url . ' failed. Status code: ' . $response->getStatusCode() . - ' - ' . substr($response->getContent(false), 0, 250) + ' - ' . substr($response->getContent(false), 0, 250) ); } // @codeCoverageIgnoreEnd @@ -140,5 +139,4 @@ protected function validateAndGetTo(AbstractEvent $event, ?Component $to): Compo return $to; } - }