Skip to content

Commit

Permalink
remove ActorPath.ToString call from `ResolveActorRefWithLocalAddres…
Browse files Browse the repository at this point in the history
…s` (#5034)

* remove `ActorPath.ToString` call from `ResolveActorRefWithLocalAddress`

* remove comment
  • Loading branch information
Aaronontheweb committed May 24, 2021
1 parent 99be70b commit 6f5b003
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/Akka.Remote/RemoteActorRefProvider.cs
Expand Up @@ -489,8 +489,7 @@ public IInternalActorRef ResolveActorRefWithLocalAddress(string path, Address lo
//the actor's local address was already included in the ActorPath
if (HasAddress(actorPath.Address))
{
// HACK: needed to make ActorSelections work
if (actorPath.ToStringWithoutAddress().Equals("/"))
if (actorPath is RootActorPath)
return RootGuardian;
return _local.ResolveActorRef(RootGuardian, actorPath.ElementsWithUid);
}
Expand Down

0 comments on commit 6f5b003

Please sign in to comment.