File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ function defaultFactory (origin, opts) {
2626class Pool extends PoolBase {
2727 constructor ( origin , {
2828 factory = defaultFactory ,
29- reset = false ,
3029 connections,
3130 connect,
3231 connectTimeout,
@@ -41,10 +40,6 @@ class Pool extends PoolBase {
4140 throw new InvalidArgumentError ( 'invalid connections' )
4241 }
4342
44- if ( reset != null && reset . constructor !== Boolean ) {
45- throw new InvalidArgumentError ( 'reset must be a boolean' )
46- }
47-
4843 if ( typeof factory !== 'function' ) {
4944 throw new InvalidArgumentError ( 'factory must be a function.' )
5045 }
@@ -68,7 +63,7 @@ class Pool extends PoolBase {
6863 : [ ]
6964 this [ kConnections ] = connections || null
7065 this [ kUrl ] = util . parseOrigin ( origin )
71- this [ kOptions ] = { ...util . deepClone ( options ) , reset , connect }
66+ this [ kOptions ] = { ...util . deepClone ( options ) , connect }
7267 this [ kOptions ] . interceptors = options . interceptors
7368 ? { ...options . interceptors }
7469 : undefined
You can’t perform that action at this time.
0 commit comments