Permalink
Browse files

Use the correct executor service pool

  • Loading branch information...
1 parent 0a506af commit 5b914c973bb5596577138c13e784c572c7926a69 Holden Karau committed Mar 20, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/main/scala/com/foursquare/slashem/Schema.scala
@@ -465,9 +465,7 @@ trait ElasticSchema[M <: Record[M]] extends SlashemSchema[M] {
}
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]] = {
- // val esfp = meta.executorServiceFuturePool
- val executor = Executors.newCachedThreadPool()
- val esfp = FuturePool(executor)
+ val esfp = meta.executorServiceFuturePool
val client = meta.client
val from = qb.start.map(_.toInt).getOrElse(qb.DefaultStart)

0 comments on commit 5b914c9

Please sign in to comment.