Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix serialize-messages=on DeadLetter inside DeadLetter bug #7236

Merged
merged 3 commits into from
Jun 7, 2024

Conversation

Arkatufus
Copy link
Contributor

No description provided.

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - this was a very annoying bug to find lol

@@ -83,6 +83,7 @@ public sealed class DeadLetter : AllDeadLetters
/// </exception>
public DeadLetter(object message, IActorRef sender, IActorRef recipient) : base(message, sender, recipient)
{
System.Diagnostics.Debug.Assert(message is not DeadLetter, "DeadLetter inside DeadLetter");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

? new Envelope(new DeadLetter(deserializedMsg, deadLetter.Sender, deadLetter.Recipient), envelope.Sender)
: new Envelope(deserializedMsg, envelope.Sender);
// Check that this message was ever wrapped
if (ReferenceEquals(envelope.Message, unwrapped))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) June 6, 2024 23:31
@Aaronontheweb Aaronontheweb disabled auto-merge June 7, 2024 00:36
@Aaronontheweb Aaronontheweb merged commit 79f9bc6 into akkadotnet:dev Jun 7, 2024
9 of 12 checks passed
@Aaronontheweb Aaronontheweb added this to the 1.5.24 milestone Jun 7, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants