(upstream)
| 55814 | client[kWeight] = this[kMaxWeightPerServer]; |
| 55815 | } |
| 55816 | this._updateBalancedPoolStats(); |
| 55817 | return this; |
| 55818 | } |
| 55819 | _updateBalancedPoolStats() { |
| 55820 | this[kGreatestCommonDivisor] = this[kClients].map((p4) => p4[kWeight]).reduce(getGreatestCommonDivisor, 0); |
| 55821 | } |
| 55822 | removeUpstream(upstream) { |
| 55823 | const upstreamOrigin = parseOrigin(upstream).origin; |
| 55824 | const pool = this[kClients].find((pool2) => pool2[kUrl].origin === upstreamOrigin && pool2.closed !== true && pool2.destroyed !== true); |
| 55825 | if (pool) { |
| 55826 | this[kRemoveClient](pool); |
nothing calls this directly
no test coverage detected