Skip to content

Commit 6f5b003

Browse files
remove ActorPath.ToString call from ResolveActorRefWithLocalAddress (#5034)
* remove `ActorPath.ToString` call from `ResolveActorRefWithLocalAddress` * remove comment
1 parent 99be70b commit 6f5b003

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/Akka.Remote/RemoteActorRefProvider.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,7 @@ public IInternalActorRef ResolveActorRefWithLocalAddress(string path, Address lo
489489
//the actor's local address was already included in the ActorPath
490490
if (HasAddress(actorPath.Address))
491491
{
492-
// HACK: needed to make ActorSelections work
493-
if (actorPath.ToStringWithoutAddress().Equals("/"))
492+
if (actorPath is RootActorPath)
494493
return RootGuardian;
495494
return _local.ResolveActorRef(RootGuardian, actorPath.ElementsWithUid);
496495
}

0 commit comments

Comments
 (0)