Skip to content

Commit 1a096bd

Browse files
authored
RUST-823 Reduce default max_pool_size to 10 (#346)
1 parent 3569cc2 commit 1a096bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmap/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use worker::ConnectionPoolWorker;
4040
#[cfg(test)]
4141
use self::worker::PoolWorkerHandle;
4242

43-
const DEFAULT_MAX_POOL_SIZE: u32 = 100;
43+
const DEFAULT_MAX_POOL_SIZE: u32 = 10;
4444

4545
/// A pool of connections implementing the CMAP spec. All state is kept internally in an `Arc`, and
4646
/// internal state that is mutable is additionally wrapped by a lock.

src/cmap/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub(crate) struct ConnectionPoolOptions {
5757
/// The maximum number of connections that the pool can have at a given time. This includes
5858
/// connections which are currently checked out of the pool.
5959
///
60-
/// The default is 100.
60+
/// The default is 10.
6161
pub(crate) max_pool_size: Option<u32>,
6262

6363
/// The minimum number of connections that the pool can have at a given time. This includes

0 commit comments

Comments
 (0)