@elastic/transport
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -184,7 +184,8 @@ "use strict"; | ||
debug('Emptying the connection pool'); | ||
for (const connection of this.connections) { | ||
const connections = this.connections; | ||
this.connections = []; | ||
this.size = 0; | ||
for (const connection of connections) { | ||
await connection.close(); | ||
} | ||
this.connections = []; | ||
this.size = this.connections.length; | ||
} | ||
@@ -191,0 +192,0 @@ /** |
{ | ||
"name": "@elastic/transport", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Transport classes and utilities shared among Node.js Elastic client libraries", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
222022
3477