Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
I pulled this out of another branch with other changes and didn't
make sure it was correct here on its own. 🤦
  • Loading branch information
John Griffey committed May 2, 2018
1 parent 8592751 commit 27a90f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/ScalatraBootstrap.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class ScalatraBootstrap extends LifeCycle {
// val db = if (cpds != null) Database.forDataSource(cpds) else null
val maxConns = ExchConfig.getInt("api.db.maxPoolSize")
val db =
if (connPool != null) {
if (cpds != null) {
Database.forDataSource(
connPool,
cpds,
Some(maxConns),
AsyncExecutor("ExchangeExecutor", maxConns, maxConns, 1000, maxConns)
)
Expand Down

0 comments on commit 27a90f1

Please sign in to comment.