Skip to content

Commit

Permalink
Invoke sizeBetween only once.
Browse files Browse the repository at this point in the history
[resolves #181]

Signed-off-by: Mark Paluch <mpaluch@vmware.com>
  • Loading branch information
mp911de committed Nov 8, 2022
1 parent dae00e5 commit aff1141
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/io/r2dbc/pool/ConnectionPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ private InstrumentedPool<Connection> createConnectionPool(ConnectionPoolConfigur
.metricsRecorder(metricsRecorder)
.evictionPredicate(evictionPredicate)
.destroyHandler(Connection::close)
.sizeBetween(Math.min(configuration.getMinIdle(), cpuCount), cpuCount)
.idleResourceReuseMruOrder(); // MRU to support eviction of idle

if (maxSize == -1 || initialSize > 0) {
Expand Down

0 comments on commit aff1141

Please sign in to comment.