Moved method for creating a RoutedActorRef from 'Routing.actorOf' to 'Actor.actorOf'

This commit is contained in:
Jonas Bonér 2011-10-11 11:55:59 +02:00
parent 84f4840926
commit e20866c982
11 changed files with 54 additions and 55 deletions

View file

@ -53,7 +53,7 @@ object Pi extends App {
val workers = Vector.fill(nrOfWorkers)(actorOf[Worker])
// wrap them with a load-balancing router
val router = Routing.actorOf(RoutedProps(
val router = Actor.actorOf(RoutedProps(
routerFactory = () new RoundRobinRouter,
connectionManager = new LocalConnectionManager(workers)), "pi")