Skip to content

Commit

Permalink
Remove unnecessary copy in MessageExecutionCompleted
Browse files Browse the repository at this point in the history
  • Loading branch information
ocoanet committed Sep 13, 2022
1 parent 3f890e1 commit c9d0a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Abc.Zebus/Core/MessageExecutionCompleted.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static MessageExecutionCompleted Create(MessageContext messageContext, Di

public static MessageExecutionCompleted Success(MessageId sourceCommandId, IMessage payload, IMessageSerializer serializer)
{
var payloadBytes = serializer.Serialize(payload).ToArray();
var payloadBytes = serializer.Serialize(payload);

return new MessageExecutionCompleted(sourceCommandId, payload.TypeId(), payloadBytes);
}
Expand Down

0 comments on commit c9d0a9e

Please sign in to comment.