Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Improve status messages #5226

Merged
merged 8 commits into from
Sep 8, 2021

Conversation

Zetanova
Copy link
Contributor

Akka.Actor.Failure and Akka.Actor.Failures are unused and got obsoleted.

Akka.Actor.Status.Success and Akka.Actor.Status.Failure got sealed to improve pattern matching perf.
Failure got a new Field 'State' that the receiver can send the command or a correlation-id to the sender back.

@Zetanova
Copy link
Contributor Author

One question require answering.
In the whole project following is used:
new Status.Success(null)
new Status.Success(Done.Instance)
new Status.Success(NotUsed.Instance)

I opt for null and added
public static readonly Success Instance = new Success(null);

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.

Had some questions on whether or not this will impact our Akka.Persistence.Sql plugins

@@ -1720,16 +1722,20 @@ namespace Akka.Actor
public abstract class Status
{
protected Status() { }
public class Failure : Akka.Actor.Status
public sealed class Failure : Akka.Actor.Status
Copy link
Member

Choose a reason for hiding this comment

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

LGTM

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

@Aaronontheweb Aaronontheweb modified the milestones: 1.4.24, 1.4.25 Sep 1, 2021
@Aaronontheweb Aaronontheweb enabled auto-merge (squash) September 1, 2021 18:08
@Aaronontheweb Aaronontheweb enabled auto-merge (squash) September 6, 2021 15:52
@Aaronontheweb Aaronontheweb merged commit 024c684 into akkadotnet:dev Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants