format source with scalafmt, #26511
This commit is contained in:
parent
2ba9b988df
commit
75579bed17
779 changed files with 15729 additions and 13096 deletions
|
|
@ -55,11 +55,13 @@ abstract class StatsService2 extends Actor {
|
|||
import akka.routing.ConsistentHashingGroup
|
||||
|
||||
val workerRouter = context.actorOf(
|
||||
ClusterRouterGroup(ConsistentHashingGroup(Nil),
|
||||
ClusterRouterGroupSettings(totalInstances = 100,
|
||||
routeesPaths = List("/user/statsWorker"),
|
||||
allowLocalRoutees = true,
|
||||
useRoles = Set("compute"))).props(),
|
||||
ClusterRouterGroup(
|
||||
ConsistentHashingGroup(Nil),
|
||||
ClusterRouterGroupSettings(
|
||||
totalInstances = 100,
|
||||
routeesPaths = List("/user/statsWorker"),
|
||||
allowLocalRoutees = true,
|
||||
useRoles = Set("compute"))).props(),
|
||||
name = "workerRouter2")
|
||||
//#router-lookup-in-code
|
||||
}
|
||||
|
|
@ -71,10 +73,10 @@ abstract class StatsService3 extends Actor {
|
|||
import akka.routing.ConsistentHashingPool
|
||||
|
||||
val workerRouter = context.actorOf(
|
||||
ClusterRouterPool(ConsistentHashingPool(0),
|
||||
ClusterRouterPoolSettings(totalInstances = 100,
|
||||
maxInstancesPerNode = 3,
|
||||
allowLocalRoutees = false)).props(Props[StatsWorker]),
|
||||
ClusterRouterPool(
|
||||
ConsistentHashingPool(0),
|
||||
ClusterRouterPoolSettings(totalInstances = 100, maxInstancesPerNode = 3, allowLocalRoutees = false))
|
||||
.props(Props[StatsWorker]),
|
||||
name = "workerRouter3")
|
||||
//#router-deploy-in-code
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue