MCPcopy Create free account
hub / github.com/angular/dev-infra / _updateBalancedPoolStats

Method _updateBalancedPoolStats

github-actions/saucelabs/set-saucelabs-env.js:8734–8740  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8732 pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty]);
8733 this._updateBalancedPoolStats();
8734 });
8735 pool.on("disconnect", (...args) => {
8736 const err = args[2];
8737 if (err && err.code === "UND_ERR_SOCKET") {
8738 pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty]);
8739 this._updateBalancedPoolStats();
8740 }
8741 });
8742 for (const client of this[kClients]) {
8743 client[kWeight] = this[kMaxWeightPerServer];

Callers 2

constructorMethod · 0.45
addUpstreamMethod · 0.45

Calls 1

getGreatestCommonDivisorFunction · 0.70

Tested by

no test coverage detected