()
| 84 | } |
| 85 | |
| 86 | getInFlight() { |
| 87 | const length = this.connections.length; |
| 88 | if (length === 1) { |
| 89 | return this.connections[0].getInFlight(); |
| 90 | } |
| 91 | |
| 92 | let sum = 0; |
| 93 | for (let i = 0; i < length; i++) { |
| 94 | sum += this.connections[i].getInFlight(); |
| 95 | } |
| 96 | return sum; |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Gets the least busy connection from the pool. |
no outgoing calls
no test coverage detected