Skip to content

Commit

Permalink
Merge pull request #2277 from hongwei1/develop
Browse files Browse the repository at this point in the history
refactor/tweaked the wait time to 500 ms
  • Loading branch information
simonredfern authored Sep 20, 2023
2 parents 3fe5a45 + 58ae42d commit 6a43215
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ trait CustomProtoDBVendor extends ConnectionManager {
case Nil =>
val curSize = poolSize
logger.trace("No connection left in pool, waiting...")
wait(50L*poolSize )
wait(500L)
// if we've waited 50 ms and the pool is still empty, temporarily expand it
if (pool.isEmpty && poolSize == curSize && canExpand_?) {
tempMaxSize += 1
Expand Down

0 comments on commit 6a43215

Please sign in to comment.