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

Akka.Coordination: minor cleanup #5074

Merged

Conversation

Aaronontheweb
Copy link
Member

Cleaned up some internal issues with Akka.Coordination and how it's used inside Akka.Cluster.

@Aaronontheweb Aaronontheweb added the akka-coordination Akka.Coordination package updates and materials label Jun 4, 2021
@Aaronontheweb Aaronontheweb added this to the 1.4.21 milestone Jun 4, 2021
Copy link
Member Author

@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.

Described changes

@@ -385,7 +386,7 @@ private void OnAcquireLease()

public Receive WaitingForLease(IDecision decision)
{
bool Receive(object message)
bool ReceiveLease(object message)
Copy link
Member Author

Choose a reason for hiding this comment

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

Receive was hiding the ActorBase.Receive method - renamed it.

@@ -83,7 +83,7 @@ public static LeaseProvider Get(ActorSystem system)
}

private readonly ExtendedActorSystem _system;
private readonly ConcurrentDictionary<LeaseKey, Lease> leases = new ConcurrentDictionary<LeaseKey, Lease>();
private readonly ConcurrentDictionary<LeaseKey, Lease> _leases = new ConcurrentDictionary<LeaseKey, Lease>();
Copy link
Member Author

Choose a reason for hiding this comment

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

Style

@@ -151,7 +151,7 @@ public Lease GetLease(string leaseName, string configPath, string ownerName)
Log.Error(
ex,
"Invalid lease configuration for leaseName [{0}], configPath [{1}] lease-class [{2}]. " +
"The class must implement scaladsl.Lease or javadsl.Lease and have constructor with LeaseSettings parameter and " +
"The class must implement Akka.Coordination.Lease and have constructor with LeaseSettings parameter and " +
Copy link
Member Author

Choose a reason for hiding this comment

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

Changed this comment to match the .NET FQN

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) June 4, 2021 20:46
@Aaronontheweb Aaronontheweb merged commit 16fef39 into akkadotnet:dev Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
akka-coordination Akka.Coordination package updates and materials
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant