From 31555169bae1a9c81a5cc131d8a9e2b4d9885127 Mon Sep 17 00:00:00 2001 From: Xavi Aparicio Date: Wed, 6 Mar 2024 15:16:41 +0100 Subject: [PATCH] Remove unnecessary to formatOutgoingMessage() --- src/ExternalEvents.php | 1 - src/LogMessageFormatterInterface.php | 1 - tests/ExternalEventsTest.php | 1 - 3 files changed, 3 deletions(-) diff --git a/src/ExternalEvents.php b/src/ExternalEvents.php index af35af5..6a640db 100644 --- a/src/ExternalEvents.php +++ b/src/ExternalEvents.php @@ -66,7 +66,6 @@ public static function publish(string $service, Message $class, array $headers = $executionTimeMs = ($endTimeMs - $startTimeMs) * 1000; $logMessage = self::$formatter->formatOutgoingMessage( - $service, $routingKey, $message, $executionTimeMs, diff --git a/src/LogMessageFormatterInterface.php b/src/LogMessageFormatterInterface.php index fa42561..95cd451 100644 --- a/src/LogMessageFormatterInterface.php +++ b/src/LogMessageFormatterInterface.php @@ -7,7 +7,6 @@ interface LogMessageFormatterInterface { public function formatOutgoingMessage( - string $service, string $routingKey, array $message, int $executionTimeMs, diff --git a/tests/ExternalEventsTest.php b/tests/ExternalEventsTest.php index 72ec699..54c9fe4 100644 --- a/tests/ExternalEventsTest.php +++ b/tests/ExternalEventsTest.php @@ -118,7 +118,6 @@ public function whenPublishMessageWithLoggerAndFormatterItShouldPublishAndLogIt( $formatter->shouldReceive('formatOutgoingMessage') ->once() ->with( - $service, ':service:.softonic.laravel_protobuf_events.fake_proto.fake_message', [ 'client' => ':client:',