Skip to content

Commit

Permalink
Correction of router with resizer doc sample, see #2740
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw committed Nov 26, 2012
1 parent 04c30fb commit 12f9c7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -70,7 +70,7 @@ public static void main(String... args) {
int upperBound = 15;
DefaultResizer resizer = new DefaultResizer(lowerBound, upperBound);
ActorRef router3 = system.actorOf(
new Props(ExampleActor.class).withRouter(new RoundRobinRouter(nrOfInstances)));
new Props(ExampleActor.class).withRouter(new RoundRobinRouter(resizer)));
//#programmaticRoutingWithResizer
for (int i = 1; i <= 6; i++) {
router3.tell(new ExampleActor.Message(i), null);
Expand Down
2 changes: 1 addition & 1 deletion akka-docs/rst/scala/code/docs/zeromq/ZeromqDocSpec.scala
Expand Up @@ -29,7 +29,7 @@ object ZeromqDocSpec {

class HealthProbe extends Actor {

val pubSocket = ZeroMQExtension(context.system).newSocket(SocketType.Pub,
val pubSocket = ZeroMQExtension(context.system).newSocket(SocketType.Pub,
Bind("tcp://127.0.0.1:1235"))
val memory = ManagementFactory.getMemoryMXBean
val os = ManagementFactory.getOperatingSystemMXBean
Expand Down

0 comments on commit 12f9c7f

Please sign in to comment.