Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use the correct executor service pool

  • Loading branch information...
commit 5b914c973bb5596577138c13e784c572c7926a69 1 parent 0a506af
Holden Karau authored
4  src/main/scala/com/foursquare/slashem/Schema.scala
@@ -465,9 +465,7 @@ trait ElasticSchema[M <: Record[M]] extends SlashemSchema[M] {
465 465
   }
466 466
 
467 467
   def elasticQueryFuture[Ord, Lim, MM <: MinimumMatchType, Y, H <: Highlighting, Q <: QualityFilter, FC <: FacetCount, FLim](qb: QueryBuilder[M, Ord, Lim, MM, Y, H, Q, FC, FLim], query: ElasticQueryBuilder, timeoutOpt: Option[Duration]): Future[SearchResults[M, Y]] = {
468  
-    //    val esfp = meta.executorServiceFuturePool
469  
-    val executor = Executors.newCachedThreadPool()
470  
-    val esfp = FuturePool(executor)
  468
+    val esfp = meta.executorServiceFuturePool
471 469
 
472 470
       val client = meta.client
473 471
       val from = qb.start.map(_.toInt).getOrElse(qb.DefaultStart)

0 notes on commit 5b914c9

Please sign in to comment.
Something went wrong with that request. Please try again.