Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use the correct executor service pool
  • Loading branch information
Holden Karau committed Mar 20, 2012
1 parent 0a506af commit 5b914c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/scala/com/foursquare/slashem/Schema.scala
Expand Up @@ -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)
Expand Down

0 comments on commit 5b914c9

Please sign in to comment.