Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions bundle/src/Comms/Comms.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ public function __construct(
private InternalConfig $internalConfig,
private InstanceUrlResolver $instanceUrlResolver,
private MessageBusInterface $bus,
) {
}
) {}

public function signature(string $content): string
{
Expand Down Expand Up @@ -72,7 +71,7 @@ public function send(
[
'headers' => $headers,
'body' => $jsonPayload,
'timeout' => 5,
'timeout' => 15,
]
);

Expand All @@ -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
Expand Down Expand Up @@ -140,5 +139,4 @@ protected function validateAndGetTo(AbstractEvent $event, ?Component $to): Compo

return $to;
}

}