Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

< 120

  • Loading branch information...
commit 85621c88f6ffcf4741372e4257021243ebf76d1b 1 parent fd4659f
Matt Freels freels authored
Showing with 13 additions and 2 deletions.
  1. +13 −2 src/main/scala/com/twitter/gizzard/GizzardServer.scala
15 src/main/scala/com/twitter/gizzard/GizzardServer.scala
View
@@ -41,13 +41,24 @@ abstract class GizzardServer[S <: Shard, J <: JsonJob](config: ServerConfig) {
}
lazy val jobCodec = new ReplicatingJsonCodec(nameServer.jobRelay, logUnparsableJob)
- lazy val jobScheduler = new PrioritizingJobScheduler(jobPriorities.map(p => p -> config.jobQueues(p)(jobCodec)).toMap)
+ lazy val jobScheduler = new PrioritizingJobScheduler(jobPriorities map { p =>
+ p -> config.jobQueues(p)(jobCodec)
+ } toMap)
+
lazy val copyScheduler = jobScheduler(copyPriority).asInstanceOf[JobScheduler[JsonJob]]
// service wiring
- lazy val managerServer = new thrift.ManagerService(nameServer, copyFactory, jobScheduler, copyScheduler, repairFactory, repairPriority, diffFactory)
+ lazy val managerServer = new thrift.ManagerService(
+ nameServer,
+ copyFactory,
+ jobScheduler,
+ copyScheduler,
+ repairFactory,
+ repairPriority,
+ diffFactory)
+
lazy val managerThriftServer = config.manager(new thrift.Manager.Processor(managerServer))
lazy val jobInjectorServer = new thrift.JobInjectorService(jobCodec, jobScheduler)
Please sign in to comment.
Something went wrong with that request. Please try again.