-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Akka.Coordination: minor cleanup #5074
Conversation
There was a problem hiding this 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) |
There was a problem hiding this comment.
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>(); |
There was a problem hiding this comment.
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 " + |
There was a problem hiding this comment.
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
Cleaned up some internal issues with Akka.Coordination and how it's used inside Akka.Cluster.