Open c24w opened 6 years ago
thanks. Would you be able to make unit test covering this?
do you think #674 fixed this @c24w ?
@sidorares #674 fixed the exact issue I was seeing; however, this is the more generic issue that connections originating from a PromisePool
are inheriting methods from Connection
, not PoolConnection
. My PR addressed this for the destroy
method, but there may be others.
This is an issue when using a
PromiseConnection
which wraps aPoolConnection
. For example:destroy
only ever proxiesConnection.prototype.destroy
, notPoolConnection.prototype.destroy
, so the connection isn't removed from the pool.