We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00c3e82 commit a42aa27Copy full SHA for a42aa27
src/cmap/connection_pool.ts
@@ -617,7 +617,7 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
617
*
618
* @returns `true` if the connection was destroyed, `false` otherwise.
619
*/
620
- private destroyConnectionIfPerished(connection: Connection) {
+ private destroyConnectionIfPerished(connection: Connection): boolean {
621
const isStale = this.connectionIsStale(connection);
622
const isIdle = this.connectionIsIdle(connection);
623
if (!isStale && !isIdle && !connection.closed) {
0 commit comments