(
connection: Connection,
reason: 'error' | 'idle' | 'stale' | 'poolClosed'
)
| 558 | } |
| 559 | |
| 560 | private destroyConnection( |
| 561 | connection: Connection, |
| 562 | reason: 'error' | 'idle' | 'stale' | 'poolClosed' |
| 563 | ) { |
| 564 | this.emitAndLog( |
| 565 | ConnectionPool.CONNECTION_CLOSED, |
| 566 | new ConnectionClosedEvent(this, connection, reason) |
| 567 | ); |
| 568 | // destroy the connection |
| 569 | connection.destroy(); |
| 570 | } |
| 571 | |
| 572 | private connectionIsStale(connection: Connection) { |
| 573 | const serviceId = connection.serviceId; |
no test coverage detected