incorporate review comments
- add two missing @volatiles - add quite some comments - refactor provider.actorOf to always take a path for the child, not only a name
This commit is contained in:
parent
d4a764cfd9
commit
09aadcb60d
4 changed files with 77 additions and 41 deletions
|
|
@ -162,7 +162,7 @@ class RemoteSystemDaemon(remote: Remote, _path: ActorPath, _parent: InternalActo
|
|||
val subpath = elems.drop(1)
|
||||
val path = remote.remoteDaemon.path / subpath
|
||||
val supervisor = remote.system.actorFor(message.getSupervisor).asInstanceOf[InternalActorRef]
|
||||
val actor = new LocalActorRef(remote.system, Props(creator = actorFactory), supervisor, path, true)
|
||||
val actor = remote.system.provider.actorOf(remote.system, Props(creator = actorFactory), supervisor, path, true)
|
||||
addChild(subpath.mkString("/"), actor)
|
||||
remote.system.deathWatch.subscribe(this, actor)
|
||||
case _ ⇒
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue