diff --git a/_mb/mailbox_user__b b/_mb/mailbox_user__b new file mode 100644 index 0000000000..009c77d26b Binary files /dev/null and b/_mb/mailbox_user__b differ diff --git a/akka-actor/src/main/scala/akka/routing/Routing.scala b/akka-actor/src/main/scala/akka/routing/Routing.scala index 8fdfb8d9eb..d96f9cb5f1 100644 --- a/akka-actor/src/main/scala/akka/routing/Routing.scala +++ b/akka-actor/src/main/scala/akka/routing/Routing.scala @@ -81,7 +81,7 @@ trait RouterConfig { protected def createRoutees(props: Props, context: ActorContext, nrOfInstances: Int, targets: Iterable[String]): Vector[ActorRef] = (nrOfInstances, targets) match { case (0, Nil) ⇒ throw new IllegalArgumentException("Insufficient information - missing configuration.") case (x, Nil) ⇒ (1 to x).map(_ ⇒ context.actorOf(props))(scala.collection.breakOut) - case (_, xs) ⇒ Vector.empty[ActorRef] ++ xs.map(context.actorFor(_)) + case (_, xs) ⇒ xs.map(context.actorFor(_))(scala.collection.breakOut) } } diff --git a/akka-tutorials/akka-tutorial-first/src/main/scala/Pi.scala b/akka-tutorials/akka-tutorial-first/src/main/scala/Pi.scala index 6634eef783..76461d82e9 100644 --- a/akka-tutorials/akka-tutorial-first/src/main/scala/Pi.scala +++ b/akka-tutorials/akka-tutorial-first/src/main/scala/Pi.scala @@ -87,7 +87,7 @@ object Pi extends App { // ===== Run it ===== // ================== def calculate(nrOfWorkers: Int, nrOfElements: Int, nrOfMessages: Int) { - val system = ActorSystem() + val system = ActorSystem("PiSystem") // this latch is only plumbing to know when the calculation is completed val latch = new CountDownLatch(1)