Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
ranges are projections, so the greediness was not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robey Pointer committed Mar 9, 2010
1 parent b878e1f commit e085da8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ class TimingOutDatabase(database: Database, dbhosts: List[String], dbname: Strin
database.close(conn)
}
} catch {
case e: TimeoutException => throw new SqlDatabaseTimeoutException(dbhosts.mkString(",")+"/"+dbname)
case e: TimeoutException => throw new SqlDatabaseTimeoutException(dbhosts.mkString(",") + "/" + dbname)
}
}

private def greedilyInstantiateConnections() = {
(0 until maxConnections).map { i =>
(0 until maxConnections).force.map { i =>
getConnection(initialTimeout)
}.map(_.close)
}
Expand Down

0 comments on commit e085da8

Please sign in to comment.