Skip to content

Commit

Permalink
Remove unnecessary to formatOutgoingMessage()
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviapa committed Mar 6, 2024
1 parent 3982568 commit 3155516
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/ExternalEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/LogMessageFormatterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
interface LogMessageFormatterInterface
{
public function formatOutgoingMessage(
string $service,
string $routingKey,
array $message,
int $executionTimeMs,
Expand Down
1 change: 0 additions & 1 deletion tests/ExternalEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public function whenPublishMessageWithLoggerAndFormatterItShouldPublishAndLogIt(
$formatter->shouldReceive('formatOutgoingMessage')
->once()
->with(
$service,
':service:.softonic.laravel_protobuf_events.fake_proto.fake_message',
[
'client' => ':client:',
Expand Down

0 comments on commit 3155516

Please sign in to comment.