Skip to content

Commit 29a4cd6

Browse files
committed
refactor: use spec-compliant variable names for pool settings
1 parent 5600af9 commit 29a4cd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/topologies/native_topology.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ class NativeTopology extends Topology {
1515
cursorFactory: Cursor,
1616
reconnect: false,
1717
emitError: typeof options.emitError === 'boolean' ? options.emitError : true,
18-
size: typeof options.poolSize === 'number' ? options.poolSize : 5,
18+
maxPoolSize: typeof options.poolSize === 'number' ? options.poolSize : 5,
19+
minPoolSize: typeof options.minSize === 'number' ? options.minSize : 0,
1920
monitorCommands:
2021
typeof options.monitorCommands === 'boolean' ? options.monitorCommands : false
2122
}

0 commit comments

Comments
 (0)